Commit Graph

2962 Commits

Author SHA1 Message Date
Matthew Budd ca005b498b Bug fix for cmake pkg-config search for lua 5.1 package. Ubuntu packages this as lua5.1 and Fedora names it lua-5.1. Changed cmake file to use pkg_search_module to search for both package names and use the first one it finds. 2020-11-28 23:28:35 -05:00
Matthew Budd 4decd24bcd Build fix for __THROWNL not being defined on libc that is used by Alpine Linux 2020-11-28 22:38:57 -05:00
Matthew Budd d13c151817 Default Qt GUI Timing statistics calcutions to off. TODO make timing stats enable via GUI. 2020-11-28 22:05:39 -05:00
Matthew Budd 35e0bc441f Removed debug print statement. 2020-11-28 21:55:55 -05:00
Matthew Budd 4812c804fd Added timing options selection combo box to timing window on Qt GUI. 2020-11-28 21:46:41 -05:00
Matthew Budd f198996cd4 Added logic to auto set process scheduling priorities at startup. 2020-11-28 21:03:26 -05:00
Matthew Budd 961aa83a51 Bug fixes for Qt timing priority configs. 2020-11-28 20:43:34 -05:00
Matthew Budd 18e9dc1a9e Added logic to check whether the user has the permissions necessary to increase the priority (nice) of the process. If not, disable the slider on the Qt timing window. 2020-11-28 15:40:27 -05:00
Matthew Budd e67b17795c Added scheduler config parameters to Qt GUI. 2020-11-28 00:28:28 -05:00
mjbudd77 ab31c760d5 Build fix for mac os 2020-11-27 23:48:57 -05:00
Matthew Budd d5d6b32787 Added GUI scheduling parameters to Qt timing config window 2020-11-27 23:42:32 -05:00
Matthew Budd e154b38327 Qt Timing config window bug fixes for cases when OS does not have proper permissions. 2020-11-27 23:04:41 -05:00
Matthew Budd 6b8e4f883b Initial add of timing configuration window to Qt GUI. 2020-11-27 22:18:04 -05:00
Matthew Budd 8d0de7793a Merge branch 'development' of https://github.com/mjbudd77/fceux into development 2020-11-27 19:56:31 -05:00
mjbudd77 a7b031ee81 Qt GUI thread priority functionality added for mac os 2020-11-27 19:53:14 -05:00
Matthew Budd 3982d1b897 CAdded 2020-11-27 14:23:17 -05:00
Matthew Budd 2b05c7169d Initial add of logic to allow for high priority threads in Qt GUI. Modified speed throttle logic to have more accurate frame timing. 2020-11-26 23:44:59 -05:00
Matthew Budd 16af95771d Build fix for linux appveyor pipeline. Ensure OS package updates are pulled in from server before attempting to pull dependencies. 2020-11-24 20:32:41 -05:00
Matthew Budd 14766432ae Added periodic checking logic to ensure that gamepad 4 score checkboxes on input and gamepad config windows stay synchronized. 2020-11-24 19:46:22 -05:00
Matthew Budd c9d0eddec6 For Qt GUI, added a checkbox to allow for auto load/save of input presets on ROM open/close. 2020-11-24 16:22:09 -05:00
Matthew Budd fa18154ac3 Added a low rate periodic update function to Qt input window to ensure that it stays synchronized with the state of the emulator input settings. 2020-11-24 07:01:34 -05:00
Matthew Budd c4a066c25c Qt Input config window further code hardening. 2020-11-24 06:25:12 -05:00
Matthew Budd 85cee7fd4a Added load/save input preset file logic for Qt GUI. 2020-11-23 22:16:52 -05:00
Matthew Budd f541822557 Qt input preset configs in work. 2020-11-23 16:22:01 -05:00
Matthew Budd adce35cc58 Added input preset configuration scheme for Qt GUI. 2020-11-23 16:09:11 -05:00
Matthew Budd 396029743a Added input device selection/configuration window for Qt GUI. Still TODO, button config windows for non-gamepad devices. 2020-11-23 13:50:26 -05:00
Matthew Budd 30b3a92c38 Corrections for zapper emulation via mouse using Qt GUI. 2020-11-21 14:15:36 -05:00
Matthew Budd 6ac1d9e171 Removed a comment that is no longer valid. 2020-11-19 20:43:25 -05:00
Matthew Budd b1c0f7aaba Added ROM edit undo functionality to Qt hex editor. 2020-11-19 20:35:44 -05:00
mjbudd77 5cbfb8b1a5 Added a text highlight clear function and now clear when hex editor view mode changes. 2020-11-17 00:06:10 -05:00
mjbudd77 7127b858e1 Added find pattern functionality to Qt hex editor. 2020-11-16 23:35:33 -05:00
mjbudd77 4968e50202 Added copy/paste functionality for Qt hex editor. 2020-11-16 21:26:53 -05:00
Matthew Budd 5e35c181c8 Qt debugger slight change in main menu entry 'Run to Cursor' is now 'Run to Selected Line'. Run to Cursor option is still present in assembly viewer context menu. 2020-11-15 18:55:03 -05:00
Matthew Budd 386f943140 For Qt debugger, added a run to cursor menu shortcut key. 2020-11-15 14:47:57 -05:00
Matthew Budd 8629e19273 Added PC line placement options for Qt debugger assembly viewer. Old behavior was to always to display program counter line at the top of the viewer when a breakpoint is hit. Now that behavior is selectable to be top, upper-mid, center, lower-mid, bottom, or custom line offset. 2020-11-15 14:30:38 -05:00
Matthew Budd d3b779a4e3 Added a run to cursor debugger feature to Qt debugger window assembly view context menu. 2020-11-15 11:57:43 -05:00
Matthew Budd 13ea28dad4 Added window menu to Qt debugger and shortcuts for debug execution control buttons. 2020-11-14 14:56:57 -05:00
Matthew Budd 0d6f5e567e Minor changes to Qt debugger window to allow for it to be more compact. 2020-11-14 14:35:11 -05:00
Matthew Budd e36f53609e Added logic to clear QClipboard contents at program exit. This will prevent a momentary terminal X11 hang and following error message "QClipboard: Unable to receive an event from the clipboard manager in a reasonable time" 2020-11-14 14:01:23 -05:00
Matthew Budd 2ce2e5a8a3 Fixed wheel event scroll direction for custom QWidgets 2020-11-14 13:42:43 -05:00
Matthew Budd c5cdd77fb1 For Qt, added mouse wheel scrolling logic to all custom QWidgets (Debugger Assembly Viewer, Trace Log Viewer, Hex Editor, and RAM Search Viewer) 2020-11-14 09:24:10 -05:00
Matthew Budd 43f87541b6 Added mouse wheel scrolling capability for Qt debugger ASM viewer. 2020-11-13 13:31:04 -05:00
Matthew Budd bfa70c1f25 Bug fix for Qt debugger attempting to save symbol/bookmarks at window close with no game loaded. 2020-11-13 11:47:55 -05:00
Matthew Budd 836127afd0 Changed Qt debugger ASM viewer to render text a single character at a time to have better control of horizontal char advance. Mac OS seems to not always draw characters with the same spacing if not done this way. 2020-11-13 11:27:55 -05:00
mjbudd77 58a1d76e2c Changed shared memory allocation to a standard malloc to prevent crash
on systems that do not allow large shm sizes.
2020-11-13 11:17:35 -05:00
Matthew Budd 7dab1976f6 Added text copy/paste functionality via Qt clipboard to Qt debugger ASM viewer. 2020-11-13 10:44:09 -05:00
Matthew Budd 242620b782 Added logic to allow for symbol names to be clicked in Qt debugger ASM viewer. 2020-11-12 20:48:52 -05:00
Matthew Budd c8f0649223 Bug fix for Qt Code Data Logger auto resume function. 2020-11-11 21:25:53 -05:00
Matthew Budd 3ca86a1748 Added new mapper to cmakelist for SDL build. 2020-11-11 20:19:56 -05:00
Matthew Budd b3b46adcd5 Merge branch 'master' of https://github.com/TASVideos/fceux into development 2020-11-11 20:17:53 -05:00
Matthew Budd 4c94acf68a Added video special scaler functionality to Qt GUI. 2020-11-11 20:14:00 -05:00
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