Commit Graph

2911 Commits

Author SHA1 Message Date
g0me3 452fdfa5a3 new UNIF mappers for chinese dumps 2020-11-11 19:18:31 +03:00
Matthew Budd 0b5c73bd23 Removed inline from cheat functions to allow them to properly link in Qt/SDL executable. 2020-11-10 21:57:58 -05:00
Matthew Budd d60a00caeb Further improvements to Qt symbolic debugging. 2020-11-10 21:52:38 -05:00
Matthew Budd 90911ff17e Added RAM freeze feature to Qt hex editor. 2020-11-10 20:19:49 -05:00
Matthew Budd 889f74b5c8 Added Qt debugger assembly context menu shortcut key functionality. 2020-11-09 20:14:16 -05:00
Matthew Budd 3023ab7d50 Changed Qt debugger asssembly window address selection logic to allow for any valid hex address on the display to be selected. Previously was only allowing the instruction address at the beginning of the line to be selected. 2020-11-09 20:02:06 -05:00
Matthew Budd 49ab65bcc9 Changed debugger breakpoint/symbol add/edit windows to have the OK button as the default widget that is activated when the enter key is pressed. 2020-11-08 23:20:18 -05:00
Matthew Budd 92ccbd8a49 Changed Qt GUI hot key logic to allow for hot key bindings to include the use of modifier keys (Shift,Alt,Ctrl) to form key sequences instead of just being limited to single key bindings. 2020-11-08 22:57:28 -05:00
Matthew Budd 2fa810d1ad Added logic to Qt GUI to allow for frame advance usage when at a debugger breakpoint. 2020-11-08 19:52:15 -05:00
Matthew Budd 8adcc1a699 Added Game Genie encode/decode window to Qt GUI. 2020-11-08 15:42:48 -05:00
Matthew Budd 3c2c039f3a Added custom style sheet usage comment to command line help for Qt GUI. 2020-11-07 15:06:07 -05:00
Matthew Budd e38793f352 Added Qt style command line options to help printout. 2020-11-07 14:44:07 -05:00
Matthew Budd f4da749a44 Added logic to Qt trace logger and ram search to change fore/background color scheme based on style theme. 2020-11-07 14:19:22 -05:00
Matthew Budd e42232777e Successful integration of Qt movie play window. 2020-11-07 13:32:40 -05:00
Matthew Budd 018204089a Qt Movie play window updates. 2020-11-07 00:08:51 -05:00
Matthew Budd 412ca246c7 Successful loading of a movie from the movie play window. Styling update for debugger window for dark themes. 2020-11-06 23:45:39 -05:00
Matthew Budd bbb878c20d Qt Movie Play dialog window in work. 2020-11-05 07:03:32 -05:00
Matthew Budd 4314ccbfc3 Movie play window for Qt GUI in work. 2020-11-05 06:49:50 -05:00
Matthew Budd 9bc07b8c2c Ported over another missing fix to the Qt iNES header editor from the windows version. 2020-11-05 06:02:30 -05:00
Matthew Budd fe5953a205 Added movie load full save state checkbox comment to Qt GUI. 2020-11-05 05:57:30 -05:00
Matthew Budd fc1ce9da85 Build fix for GTK GUI, re-declaration of an external symbol of a different type is a dangerous thing. 2020-11-05 05:45:18 -05:00
Matthew Budd d8d696e1a1 Added movie options dialog window to Qt GUI. 2020-11-05 05:24:21 -05:00
Matthew Budd feff0f79c3 Added a config parameter to Qt GUI to store movie directory path. 2020-11-04 06:39:16 -05:00
Matthew Budd 6672e53098 Ported over recent iNES header editor mapper decoding fix from windows to Qt. 2020-11-03 18:12:26 -05:00
Alexey 'Cluster' Avdyukhin 7e38d08bdb Fixed header editor bug, mappers>255 support were totally broken 2020-11-03 15:29:30 +03:00
Matthew Budd e72cc4d0d5 Bug fix for issue #217. The Qt hex editor memory reads are now synchronized with emulation thread execution. This ensures that calls to GetMem will not improperly interfere with certain memory mapped registers while the emulation thread is executing. Reading at an inappropriate time from controller registers mapped at addresses $4016 and $4017 can cause the emulator to miss button presses. Thread synchronization fixes this. 2020-11-03 06:36:30 -05:00
Matthew Budd 87b6368956 Changed the lua emu.loadrom function to have a string return value containing the path to the currently loaded ROM. The old function had no return value. This return value allows for the user to determine what game was loaded since the function behavior is to try to reload the last known ROM if the passed argument cannot be loaded. 2020-11-01 21:45:36 -05:00
Matthew Budd 9f10a1fb20 First successful test of Qt iNES header editor. 2020-11-01 21:18:08 -05:00
Matthew Budd bcef387bb0 Added logic to open file if a ROM is not currently loaded when opening the iNES header editor. 2020-11-01 20:04:21 -05:00
Matthew Budd 1055294895 Qt iNES header editor in work. 2020-11-01 19:02:30 -05:00
Matthew Budd b04938901f Qt iNES header editor in work. 2020-11-01 16:43:09 -05:00
Matthew Budd ef8c426549 Merge branch 'master' into development 2020-11-01 15:39:48 -05:00
Matthew Budd 3f4d8898a0 Changed Family Keyboard enable toggle logic to by a configurable hot key instead of the hardcoded scroll lock key. Fixes issue #214. 2020-10-31 20:38:44 -04:00
Matthew Budd 22f47c43c6 Merge branch 'master' of https://github.com/mjbudd77/fceux 2020-10-31 16:27:10 -04:00
Matthew Budd 5c29bdbd8d Lua scripting pathing improvements for Linux/MacOS. Use realpath when possible to always have a absolute path for scripts and roms internally. 2020-10-31 16:25:29 -04:00
mjbudd77 ddb879b21a Build fix for MacOS. 2020-10-31 16:12:40 -04:00
Matthew Budd 0cca02e765 Bug fix for issue #215. MacOS was not changing the current working directory to the lua script location when loading a lua script. 2020-10-31 16:08:22 -04:00
Matthew Budd ec875b9357 Changed Lua console message buffer to allow for strings that are much longer than 256 characters. 2020-10-31 16:01:15 -04:00
mjbudd77 5d6cda446a Compile fix for macOS. 2020-10-31 12:40:31 -04:00
Matthew Budd 939e2ae27e Added logic to direct lua script error messages to the output console window. Fixed crash issue described in issue #216. Crash was due to Qt GUI functions being used in the emulator thread. Only the main GUI thread is allowed to call Qt GUI functions. 2020-10-31 12:24:52 -04:00
Matthew Budd 91f035fbf2 Qt iNES header editor in work. 2020-10-29 22:06:49 -04:00
Brian Heim 2480ee81d4 cmake: use macdeployqt instead of fixup_bundle to deploy on macOS
remove unused variable - bundle generator vars are unused by dragndrop

see comments for more info
2020-10-29 09:35:08 -05:00
Matthew Budd 461d3f88cd Added initial framework for Qt iNES header editor window. 2020-10-28 23:25:32 -04:00
Matthew Budd 58407e4ac3 Removed old comment block from Qt Trace logger. 2020-10-28 20:39:53 -04:00
Matthew Budd 130547fa89 Added symbolic debug replacement functionality during disassembly on Qt trace logger. 2020-10-28 20:37:39 -04:00
Matthew Budd cde409dece Added a disassembly with debug symbols function that replaces numeric addresses with text symbol names during the disassembly process. This allows for the symbol maps to be keyed into directly with an integer value and is more efficient that the text search replace algorithm. Currently the Qt debugger window is the only window that uses this function. The trace logger will be next. 2020-10-28 20:22:40 -04:00
Matthew Budd 82b5de3880 Restored Qt Gamepad config window to be modal. 2020-10-28 17:55:09 -04:00
Matthew Budd 86a12c96f9 Changed all debug and tools windows to be non-modal top level windows. This allows then to be minimized and maximized via the title bar buttons and will also show in the task bar of the window environment as separate windows. 2020-10-27 22:26:58 -04:00
Matthew Budd 02dbc9e42d Added a scrollable area to the Qt gamepad config dialog window that will show anytime the window is not large enough to display full widget content. The scrollable area will act as a viewport into the larger widget layout from within the smaller dialog window. Again, it will only show the scroll bars if the window is not large enough. This will allow for the window to be fully viewable on smaller monitors such as the 1024x768 monitor in issue #208. 2020-10-27 20:22:25 -04:00
Matthew Budd 81cbabbf1f For Qt, added logic to allow for auto video scaling on window resize to be optional. An 'Auto scale on resize' checkbox has been added to the video config window. When this box is checked (and applied) the window will always auto rescale the video image to a best fit on a resize. If not checked, window will use the specified numerical scale values as a maximum scaling limit. This means that the window will allow scaling the image down if the window is not large enough to fit image at the requested scale, but will never scale the image up past the request scale. So if the window is at a large size and the requested scale is small, the result will be a small video image on a big window with a lot of black space. This is for issue #205. 2020-10-27 07:00:43 -04:00
Matthew Budd 8f336bf8d3 Added logic to the Qt GUI Video Config Window to allow for the image pixel scaling to be numerically set. Also added a square pixel option to allow for the X and Y scales to either be set separately or tied together. This addresses issue #205. 2020-10-26 20:53:36 -04:00
Matthew Budd 2c7c87e3c8 Deleted unused icon file. 2020-10-26 17:28:11 -04:00
Matthew Budd bd440682fd Bug fix for Qt GUI full screen command line switch. 2020-10-25 18:55:16 -04:00
Matthew Budd 78d78ceab9 Modified the getRomFile Qt GUI function for ROMs opened from zip archives. The returned path will be the directory to the zip file and the base and suffix file parts come from the inner deflated zip file name. 2020-10-25 12:02:41 -04:00
Matthew Budd c09b1f6c7a For Qt GUI, added a zip archive ROM list selection window for the case where a zip file contains more than one ROM file in it. 2020-10-25 11:34:33 -04:00
Matthew Budd b0c460fd1d Bug fix for saving of CDL and debug files when the ROM was loaded from an archive. 2020-10-25 10:25:11 -04:00
Matthew Budd 0ce058b35b Added code to allow for ROMs to be extracted and opened from zip file in Qt GUI. 2020-10-24 22:04:00 -04:00
Matthew Budd c01d4e8621 Added all non-compressed useable file types to the open ROM file dialog filters for Qt GUI. 2020-10-24 09:43:38 -04:00
Matthew Budd 040c7abaef Updated linux desktop installation to use higher resolution icon. Added a white trim to the icon to have contrast on dark desktop backgrounds. 2020-10-22 22:19:47 -04:00
Matthew Budd 1d2fa00335 Added QDir::AllDirs argument to all Qt GUI file browser instances to ensure that all directories will be shown any time a QFileDialog is opened. 2020-10-22 00:17:32 -04:00
Matthew Budd 8252a94202 Minor code cleanup. 2020-10-21 22:05:15 -04:00
mjbudd77 bf696c6494 Build fix for Mac OSX emu.getdir() lua code. 2020-10-21 21:52:32 -04:00
Matthew Budd 80022a40d6 Changed logic to use dirname for Mac OS emu.getdir(). 2020-10-21 21:40:27 -04:00
Matthew Budd 379ff6d757 Added emu.getdir() logic for linux and mac OSX 2020-10-21 21:21:49 -04:00
Matthew Budd fede6f5690 Minor cleanup of lua engine load rom update for SDL port. 2020-10-21 20:45:50 -04:00
Matthew Budd 58e87898f2 Merge branch 'master' of https://github.com/mjbudd77/fceux 2020-10-21 20:33:22 -04:00
Matthew Budd f0c13a57ec Fixed Qt context menus so that all child widgets are destroyed after the menu parent goes out of scope. 2020-10-21 20:31:39 -04:00
Mario Perić 432ffeeec2 Use LoadGame instead of FCEUI_LoadGame 2020-10-22 01:20:48 +02:00
Mario Perić ec72160f39 Added support for loading ROM files from Lua script on Linux 2020-10-21 22:09:55 +02:00
mjbudd77 7c4c524152 Added a line to ensure that linear filter option is initialized at startup for Qt gui. 2020-10-20 07:28:46 -04:00
mjbudd77 812ef25629 Added pixel linear filtering option logic for SDL viewport (for OpenGL and Direct3D backends only) 2020-10-20 07:19:47 -04:00
mjbudd77 fd5e68efd0 For Qt GUI, added PPU pattern view key shortcuts for context menu options. 2020-10-19 23:34:28 -04:00
mjbudd77 2f716e0e77 For the Qt GUI, added a PPU pattern tile zoomed view feature via a context menu. The pattern view context menu can now be use to change palettes, toggle tile grid lines, and enter/exit tile zoom mode. Also, added a Qt message capture function to get any error, warning, info, or debug messages that come out of the Qt application core. 2020-10-19 23:21:00 -04:00
mjbudd77 1c762f95d1 Added code to the Qt gui to allow for individual users to set custom Qt styling. The Qt gui will check to see if an environment variable exists named FCEUX_QT_STYLESHEET, which should contain the full path to a Qt stylesheet file. If the variable is defined and the file exists and can be opened, then the style content for that file will be used by the application. 2020-10-18 22:13:00 -04:00
mjbudd77 9e57c49f5a Added logic to initialize the fore and background color palettes of the Qt trace logger viewport. 2020-10-18 21:36:49 -04:00
mjbudd77 1c0d999033 Hooked up OpenGL linear filtering enable function to Qt video config checkbox. 2020-10-18 21:31:37 -04:00
mjbudd77 ce2afe23e1 Added a circular buffer to the Qt Lua output console to allow for messages to be passed in a thread safe way from the emulation thread to the GUI thread. This fixes the crash issue mentioned in Issue #190. 2020-10-18 15:30:14 -04:00
mjbudd77 da0ab1359c Added set frame advance delay menu and input dialog logic for Qt GUI. 2020-10-18 10:53:31 -04:00
mjbudd77 8b5e99909a Added emulation speed control main menu functionality to Qt GUI. 2020-10-18 10:34:03 -04:00
mjbudd77 30f6f385ec
Merge pull request #188 from mjbudd77/master
Per request, changed the Qt debugger stack display to use a more comp…
2020-10-18 00:32:14 -04:00
mjbudd77 0f33735e06 Per request, changed the Qt debugger stack display to use a more compact address text format. 2020-10-17 23:57:10 -04:00
mjbudd77 9ad3cc8c7c
Merge pull request #187 from mjbudd77/master
Bug fix for order of destruction issue caused when shutting down the …
2020-10-17 23:50:41 -04:00
mjbudd77 598f036d56 Bug fix for order of destruction issue caused when shutting down the application with the debugger window open. 2020-10-17 23:26:49 -04:00
mjbudd77 707368157d
Merge pull request #186 from mjbudd77/master
For Qt GUI debugger window, added logic to allow for display of stack…
2020-10-17 23:07:55 -04:00
mjbudd77 c1fca59e74 For Qt GUI debugger window, added logic to allow for display of stack addresses to be toggle-able on/off via either context menu or A key when widget has focus. 2020-10-17 22:41:29 -04:00
mjbudd77 1caeb2ba71
Merge pull request #185 from mjbudd77/master
Bug fix and Improvements for Qt Debugger Stack Display
2020-10-17 22:24:00 -04:00
mjbudd77 fffa78b507 Bug fix for Qt debugger stack display clipping end of line. Added logic to allow for the stack display to auto show a horizontal scroll bar if needed. Also added a stack display bytes per line config option. This can be changed by either right clicking the stack display widget and selecting the desired value in the context menu or using the number keys 1-8 when the widget has focus. 2020-10-17 21:22:19 -04:00
mjbudd77 e66a162430
Merge pull request #184 from mjbudd77/master
Added RAM Search Window to Qt GUI
2020-10-17 00:23:56 -04:00
mjbudd77 5715ec235a Added Qt Hex Editor goto Address Dialog. Added RAM search to Qt GUI capability list. 2020-10-16 23:53:20 -04:00
mjbudd77 e77dd77b7c Resolved simple cppcheck warning on Qt Ram watch window. 2020-10-16 23:18:13 -04:00
mjbudd77 3c67d440e8 Added logic to Qt RAM search window to not store search history when auto search is active. This will avoid excessive memory allocation. 2020-10-16 23:15:23 -04:00
mjbudd77 c98276945e Added RAM Watch quick access from RAM search window for Qt GUI 2020-10-16 22:44:23 -04:00
mjbudd77 65bb526951 Added logic to refresh cheat window when adding from RAM search or watch windows for Qt GUI 2020-10-16 22:30:04 -04:00
mjbudd77 1dc0181e01 Added RAM search quick eliminate and hex editor functions for Qt GUI. 2020-10-16 22:04:45 -04:00
mjbudd77 4215f2d3f7 Successful test of all RAM search functions in Qt GUI. 2020-10-16 20:47:29 -04:00
mjbudd77 abe66aceec Successful test of RAM specific value search 2020-10-16 20:20:29 -04:00
mjbudd77 7803cc3294 Successful test of ram relative search functionality. 2020-10-16 20:05:51 -04:00
zeromus fca059aaf4 mmc5 was making no virtually no effort to clear data on power-on, creating nondeterminisms on movie plays. I revised all that.. and it's making me think fceux fundamentally doesn't work well with this. In particular I'm not sure about the timing of the loaded save data. If we get called in the order: mapper_init, loadsavedata, mapper_power -- then we will clobber the WRAM in mapper_power (at least, the way I have it now in mmc5) which will lose the save data. save data should really be loaded AFTER a power-on command. but I don't think fceux ever through through any of this very well. well, at least this fixes my case of a deterministic fm2. 2020-10-16 13:02:06 -04:00
mjbudd77 ebfe3702f9 Qt RAM search input validation in work. 2020-10-15 22:22:44 -04:00
mjbudd77 9412b850cb Ram search by relative value in work. 2020-10-15 20:39:56 -04:00