Commit Graph

2931 Commits

Author SHA1 Message Date
Matthew Budd 1b0888e146 Added git url/revision info to the GTK/SDL GUI about window. Added git url/revision information to command line help print out for both GTK and QT versions. 2020-08-07 16:59:27 -04:00
Matthew Budd bb4adb36b4 Merge branch 'master' of ../TasVideo/fceux 2020-08-07 16:34:39 -04:00
zeromus 6f4bbacca0 fix height of win32 inputbox. fixes #145 2020-08-07 13:55:50 -04:00
mjbudd77 d416ceb0c4 Added GTK3/SDL2 based fceux build capability into cmake build file. It is configurable from the command line which GUI to build GTK or QT (default). 2020-08-07 13:23:43 -04:00
Matthew Budd 27875aac17 Changed GTK GUI shutdown order of execution so that the main window cannot be deleted until the event loop has fully exited. 2020-08-06 21:36:50 -04:00
Matthew Budd 46d02fc61a Modified GTK GUI quit logic to just set a flag in the quit callback function to allow the gui exit its main loop under normal conditions and then proceed with an orderly cleanup/shutdown outside of the GTK event loop. 2020-08-05 20:33:19 -04:00
Matthew Budd b7067cc1da Removed debug print statement. 2020-08-03 21:12:54 -04:00
Matthew Budd bbd0fe4470 Added cheat save file logic to cheat window export button. 2020-08-03 21:04:58 -04:00
Matthew Budd 4a494f8dc1 Added code to center text inside numerical entry fields on the cheat window. 2020-08-03 20:30:45 -04:00
mjbudd77 0fdf8cec14 Changed character used for width to be an X instead of 0 2020-08-03 20:20:48 -04:00
Matthew Budd b0529d564a Added pause while cheat window is active checkbox logic. 2020-08-02 21:19:32 -04:00
Matthew Budd 7c84e7b383 Added global cheat enable and auto load/save checkboxes 2020-08-02 20:58:59 -04:00
Matthew Budd e99cc1d64d Added logic to lock emulation when modifying cheats. 2020-08-02 20:31:21 -04:00
Matthew Budd 7d6f1fdacc Added logic to lock emulation when adding or deleting cheats. 2020-08-02 20:29:24 -04:00
Matthew Budd 53c96c9fbd Added button sensitivity logic for cheat search window. 2020-08-02 20:23:12 -04:00
Matthew Budd 2905c105bf Added cheat add/delete button logic. 2020-08-02 20:04:59 -04:00
Matthew Budd 34279fd5ac Added logic for modify active cheat parameter update button. 2020-08-01 21:33:43 -04:00
Matthew Budd 2d57b88e64 Added code to populate active cheat list. 2020-07-31 22:03:14 -04:00
Matthew Budd 3e1cfb3a94 More cheat search updates. 2020-07-31 20:18:39 -04:00
Matthew Budd b6871bc36d Added callbacks for cheat search buttons. 2020-07-31 20:14:17 -04:00
Matthew Budd cf54c8d225 Cheat window widget layout in work. 2020-07-30 23:06:02 -04:00
Matthew Budd bec89112e2 More updates to cheat window. 2020-07-28 22:54:52 -04:00
Matthew Budd 5088991a8d Added more widgets to the cheat window. 2020-07-28 21:37:28 -04:00
Matthew Budd c76d70582a Adding GUI framework for cheat window. 2020-07-27 22:26:41 -04:00
Matthew Budd 3c2a93d7c4 Added a protection in the audio output loop to break out of the loop if the audio sink is not draining. This will prevent lockups in the event that the audio output device has failed. 2020-07-27 21:20:25 -04:00
Matthew Budd 3528adea30 Changed error message window to use QMessageBox instead of QErrorMessage to have more control over display image. 2020-07-26 22:04:31 -04:00
Matthew Budd e918f8562a Added an error message window to the GUI. Added About Qt window to GUI. 2020-07-26 21:31:32 -04:00
Matthew Budd 0112782eab Added logic to change color of changed button mapping to red until they are save to a profile. Also, added a warning message to inform user of unsaved mappings. 2020-07-26 14:07:28 -04:00
g0me3 f2eb89c629 Merge branch 'master' of https://github.com/TASVideos/fceux 2020-07-25 21:22:13 +03:00
g0me3 6145fe22ab bandai and sunsoft barcode readers support GUI restore for WIN build
157 mapper (barcode battler) support for main unit's and cart's eeproms. all datach games are able to save properly now.
2020-07-25 21:21:37 +03:00
Matthew Budd b48b81c938 Commented out command line INOP inputCfg functionality. With new GUI gamepad config, this should not be required anymore. 2020-07-24 23:04:56 -04:00
Matthew Budd 976266547c Bug fix for shutdown of joystick system. 2020-07-24 22:41:19 -04:00
Matthew Budd 4175ca6052 Added logic to skip unassigned buttons in the config. 2020-07-24 22:26:09 -04:00
Matthew Budd 3db85cd1d2 Game pad code cleanup. 2020-07-24 22:12:45 -04:00
Matthew Budd da04bbdfc5 Added logic to init game pad mappings at startup 2020-07-24 21:47:57 -04:00
Matthew Budd 67e87787e3 Added logic to load default keyboard mapping. 2020-07-24 18:44:18 -04:00
mjbudd77 8afeb43759 Added code to allow for deletion of game pad profiles. 2020-07-24 17:14:03 -04:00
mjbudd77 b71630379a Added game pad button mapping profile logic. 2020-07-24 16:56:48 -04:00
mjbudd77 675b73cbed Added mapping profile widgets. Still TODO, write code behind them. 2020-07-24 11:05:20 -04:00
mjbudd77 b815fbfe47 Added logic to show state of mapped buttons on game pad config page. 2020-07-24 09:50:03 -04:00
Matthew Budd e50d6e22ed Added logic to load default game pad button bindings from SDL database. 2020-07-24 00:11:11 -04:00
Matthew Budd e018b4b945 Removed unused button config arrays in preparation for implementing SDL2 game controller setup. 2020-07-23 18:43:45 -04:00
Matthew Budd 10b84fa47c Added SDL game controller logic to sdl-joystick. Preparing to re-vamp the input module. 2020-07-22 22:17:53 -04:00
Matthew Budd 02c3012215 Added a checkbox option to the gui config page to allow for the gui to use the native OS menu bar for mac os and certain linux distros. 2020-07-21 20:06:25 -04:00
Jason W. Thompson 79d3396d6e Rename "Real Zapper" to "LCD Compatible Zapper"
Per feedback, "Real Zapper" was renamed to "LCD Compatible Zapper" to better reflect the purpose of this input device.
2020-07-20 22:28:29 -05:00
Matthew Budd 3fc99f7d30 Added logic to allow the use to optionally select either the Qt/OpenGL or SDL as the video driver. 2020-07-20 22:45:33 -04:00
Matthew Budd f59bf15d30 Created a console utilities file to hold misc functions used by the Qt/SDL port. 2020-07-20 21:06:49 -04:00
Matthew Budd 982ed7689d Added Lua window hooks to old sdl port that are now needed by core library. These functions do not do much on the old port and really only exist to resolve linker issues. 2020-07-20 19:36:22 -04:00
Matthew Budd 4e9601a241 Added logic for the lua output display console. 2020-07-19 21:33:20 -04:00
Matthew Budd 122473b575 Added Lua control window. 2020-07-19 21:15:56 -04:00
Matthew Budd 188320147a Bug fix for file name patterns used with QFileDialog 2020-07-19 20:04:42 -04:00
Matthew Budd 397e17ba99 Added a GUI config window to for misc GUI options. Added an option to use the native OS file browser when looking for files. 2020-07-19 18:43:42 -04:00
Matthew Budd b846ed31db Merge branch 'master' of ../TasVideo/fceux 2020-07-19 10:12:20 -04:00
Jason W. Thompson ca472ee6ae Add Real Zapper support
Adds a two button controller that can be used to represent the states of a real Zapper.
2020-07-18 23:32:29 -05:00
Matthew Budd c0febe1d3e Added a hook in the core palette emulation to allow for the gui to determine if a custom user palette is available and in use. 2020-07-18 21:58:38 -04:00
owomomo 96a116e096
Shortcuts of bookmarks in Hex Editor can be customized. (#129) 2020-07-18 18:43:23 -04:00
Matthew Budd 002481c6b9 Added a few more options to the palette config window. 2020-07-18 15:19:01 -04:00
Matthew Budd 2d4451a43c Added logic in the emulator thread to check if requests to acquire the mutex have been made by the gui. If requests are found, the emulator thread will sleep so that the gui thread can gain access and service the requests. 2020-07-17 22:14:20 -04:00
Matthew Budd 6fb247d785 Changed QMutex to be recursive to prevent dead-locks in gui and emulator. A few bug fixes for the palette config window. 2020-07-17 21:50:23 -04:00
Matthew Budd be7dcda45e Added palette config window and logic. 2020-07-16 21:18:57 -04:00
mjbudd77 f8558a9636 Added component runtime to cpack line 2020-07-12 15:43:48 -04:00
mjbudd77 08beead253 Successful addition of fceux icon to mac osx dmg package. 2020-07-12 14:10:32 -04:00
Matthew Budd 44750bf88f Added a higher resolution icon to project. 2020-07-12 12:53:41 -04:00
mjbudd77 70a2b3023a Added logic to generate a mac osx drag and drop package. 2020-07-12 11:50:18 -04:00
Matthew Budd 35b0227809 Added logic to initialize the video PAL combo box with proper config value at window creation. 2020-07-11 22:37:29 -04:00
Matthew Budd 3a6c861326 Bug fix for SDL port lock up when selecting dendy video option. 2020-07-11 22:36:55 -04:00
Matthew Budd c93d0b3113 Added command line help output. 2020-07-11 22:09:51 -04:00
Matthew Budd 76d8b829bd Bug fix for file browser initial directory calculation. 2020-07-11 21:29:23 -04:00
Matthew Budd d43383d8bf Fixed directory pathing for file browser. 2020-07-11 21:14:37 -04:00
Matthew Budd b3c51ef4b1 Added movie menu logic to gui. 2020-07-11 20:48:48 -04:00
Matthew Budd 96df0c25e1 Added logic to auto embed the git URL and revision into the executable so that it can be displayed on the About dialog window. 2020-07-11 19:52:14 -04:00
Matthew Budd 889250b720 Updated About Window. 2020-07-11 17:26:08 -04:00
Matthew Budd f436408b06 Updated about window to use embedded png. 2020-07-11 17:06:22 -04:00
Matthew Budd 2c370389fd Added window icon resource. 2020-07-11 16:55:45 -04:00
Matthew Budd 32116210b8 About FCEUX window in work. 2020-07-11 16:11:48 -04:00
Matthew Budd 210e04fe92 Added FDS menu functionality. 2020-07-11 14:42:02 -04:00
Matthew Budd 6fcfb2af7a Added insert coin menu functionality. 2020-07-11 14:21:20 -04:00
Matthew Budd b4280ee33d Added menu logic to load Game Genie ROM file 2020-07-11 14:03:40 -04:00
Matthew Budd c41cd863c6 Added game genie enable menu logic. 2020-07-11 12:59:14 -04:00
Matthew Budd 74afb50949 Added basic functions of emulation menu 2020-07-11 11:58:11 -04:00
Matthew Budd b830e0aae5 Added screen shot menu function. 2020-07-11 10:29:03 -04:00
mjbudd77 0188c11e8b Added OpenGL preference variable to cmake build file to get rid of nuisance warning. 2020-07-10 15:08:05 -04:00
mjbudd77 69a761a477 More Cmake fixes between linux and mac os 2020-07-10 14:57:55 -04:00
mjbudd77 cc4ce19784 A few build fixes for the mac os with cmake. 2020-07-10 14:48:46 -04:00
mjbudd77 cb453fa194 Moved linux pipeline to cmake instead of qmake. 2020-07-10 13:51:32 -04:00
mjbudd77 321ea729d4 Successful build of Qt GUI on MAC OSX using cmake. 2020-07-10 11:22:10 -04:00
mjbudd77 1206fcebbd Successful build of QT gui using cmake instead of qmake. 2020-07-10 10:59:07 -04:00
Matthew Budd 26e320b163 Bug fix for small memory leak on window init. 2020-07-09 21:38:31 -04:00
Matthew Budd 67b7c34576 Added change state select menu radio button logic. 2020-07-09 21:33:53 -04:00
Matthew Budd 0d8c442b35 Added a few state load menu items. 2020-07-09 21:00:04 -04:00
Matthew Budd 5958dc18fb Added fullscreen menu function. 2020-07-07 21:45:24 -04:00
Matthew Budd d87b5c7ab7 Added logic for auto-resume play menu item. 2020-07-07 21:26:15 -04:00
Matthew Budd 46271dfa61 Added video region combo box logic. 2020-07-07 21:06:24 -04:00
Matthew Budd ea1782bfe5 Added checkbox logic for video config window. 2020-07-07 20:53:31 -04:00
Matthew Budd 313bba68f9 Added missing tr function calls around string literals. 2020-07-07 18:49:58 -04:00
Matthew Budd ce0a8fdf63 Added framework for video config window. Still TODO writing logic. 2020-07-07 08:59:47 -04:00
Matthew Budd b2c094a6bf Added QT Hotkey configuration window. 2020-07-06 21:44:23 -04:00
Matthew Budd 1a99903933 Changed name of main window periodic update function so that is not the same name as QWidget base update function. 2020-07-05 22:10:28 -04:00
Matthew Budd f9b5796ef0 Created a local buffer for the openGL video image to better sync the image with the drawing frame in the gui thread. 2020-07-05 21:40:19 -04:00
Matthew Budd 4dca42bfca Moved the physical input update to the main thread since the MAC OS X SDL2 requires it to be so. 2020-07-05 21:16:31 -04:00
Matthew Budd 70a00fab13 Added mutex sync when changing sound properties of the emulator. 2020-07-05 16:54:33 -04:00
Matthew Budd ac43cc3e62 Renamed gameViewer to ConsoleViewer. 2020-07-05 16:44:36 -04:00
Matthew Budd 824bdda083 Renamed a few of the files and class objects to be more appropriate to what the actually are. 2020-07-05 16:37:26 -04:00
Matthew Budd f2e7b66c61 changed QThread setup to be a separate object from the console window. 2020-07-05 16:27:13 -04:00
Matthew Budd acc02ee98e Moved FCEU emulation to its own thread for better timing control. 2020-07-05 16:11:53 -04:00
Matthew Budd c496c0f281 Added logic to increase/decrease emulation speed via hotkeys using QTimer system. Bug fix for = key Qt to SDL mapping. 2020-07-03 21:52:27 -04:00
mjbudd77 72141845f0 Changed gl_shm name to nes_shm. Added audio circular buffer to shared memory. 2020-07-03 15:58:53 -04:00
Matthew Budd 7eca2978ed Minor removal of underscored F on File menu. 2020-07-02 21:08:46 -04:00
Matthew Budd 91e5427258 Successful test of full sound config window functionality. 2020-07-02 21:05:08 -04:00
Matthew Budd 021452b7f0 Sound configure window in work. 2020-07-02 20:49:52 -04:00
Matthew Budd afc3a61014 Started putting together window framework for sound configuration. 2020-07-01 22:03:59 -04:00
mjbudd77 104f7c465e Updated init call for game viewer SDL to match GL. 2020-06-30 20:04:17 -04:00
mjbudd77 d38f1b0c1b Build fix for minizip include in MAC OS 2020-06-30 20:00:29 -04:00
mjbudd77 2762d53791 Cleaned up game viewer GL. 2020-06-30 19:53:29 -04:00
mjbudd77 e2b853661d More testing with SDL game viewer driver, keeps drawing over the menu
bar on the mac os. Thinking native GL inside QT is the way to go.
2020-06-30 09:22:59 -04:00
mjbudd77 41b54b9813 Solved MAC OpenGL scaling issue. Turns out it was related to the retina
screen having a 2x device to framebuffer scaling.
2020-06-29 23:24:41 -04:00
Matthew Budd c6b46bfcc1 Added software pixel remapper function to openGL renderer. 2020-06-29 22:24:34 -04:00
Matthew Budd 26fe3c7da5 Added logic to keep proper aspect ratio on SDL driven screen. 2020-06-29 21:13:05 -04:00
Matthew Budd 53dcb48a90 Successful test of SDL video driver inside QT window. 2020-06-29 10:11:02 -04:00
Matthew Budd 95d055da2c Renamed openGL based game viewer so to distinguish it from others that will be tested. 2020-06-29 08:15:26 -04:00
Matthew Budd 970afc2bea Added logic to use GL_TEXTURE_RECTANGLE instead of GL_TEXTURE_2D 2020-06-28 10:11:03 -04:00
Matthew Budd 59462545ca Gui controller calibration fixes and enhancements. 2020-06-27 21:08:02 -04:00
Matthew Budd 7ba7ef4b82 Include path fixes for qmake incorrectly marking sdl folder for heading includes. 2020-06-27 20:07:24 -04:00
Matthew Budd 1980dd8c5b Game Pad calibration page still in work. 2020-06-26 21:56:26 -04:00
Matthew Budd cb664b44a0 commented out debug print statement. 2020-06-26 20:32:44 -04:00
Matthew Budd 950004503b Hooked up checkboxes on gamepad config page. 2020-06-26 20:27:20 -04:00
mjbudd77 002e9e0f34 Added logic to configure gamepad buttons. Still needs more testing. 2020-06-26 16:35:41 -04:00
Matthew Budd ee02883ac7 QT gamepad window in work. 2020-06-26 12:46:48 -04:00
Matthew Budd f1153bfc6b Successful test of loading ROM via QFileDialog, changed logic to not use native gnome file dialog as it is very lagged. 2020-06-26 09:29:47 -04:00
Matthew Budd d6ff002af0 Added keyboard QT to SDL2 key conversion functionality. 2020-06-24 21:57:43 -04:00
Matthew Budd f53bbc8cde Added logic to close game and shutdown FCEU system on window close. 2020-06-23 23:04:10 -04:00
Matthew Budd 095415790c Cleaned up unnecessary test code. 2020-06-23 22:55:48 -04:00
Matthew Budd 0352483a19 Successful display of video in QT gui. 2020-06-23 22:51:10 -04:00
Matthew Budd be4c650238 Starting new QT gui. 2020-06-23 20:40:43 -04:00
Matthew Budd fb9ee25800 Bug fix for cmake install target. 2020-06-20 00:54:26 -04:00
Matthew Budd 70a77cbe41 Added install target to cmake. 2020-06-20 00:53:18 -04:00
Matthew Budd 9a30cce921 Fixed compiler warning for unchecked fgets return value. 2020-06-20 00:39:44 -04:00
Matthew Budd 6271d63ba6 Added cmake package check for zlib 2020-06-20 00:36:43 -04:00
Matthew Budd 714e7bbfb2 Added logic to make cmake output verbose. 2020-06-20 00:20:58 -04:00
Matthew Budd 36b9cf3fb3 Fixed references to print error function in win tas editor. 2020-06-20 00:13:08 -04:00
Matthew Budd cc15338ebb Cast const char * to char * to get past winbuild.... this is not the best way to go, but it works. 2020-06-20 00:06:47 -04:00
Matthew Budd 7919071a25 Cleaned up gcc compiler warning : ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 2020-06-19 23:58:12 -04:00
bbbradsmith 79c42a8eea manifest pragma to specify windows common controls version 6
(64-bit bit version uses older control styles without this)
2020-06-18 05:18:27 -04:00
bbbradsmith 1f4bc4bb89 fix long pointer casting in Win64 build 2020-06-17 03:21:41 -04:00
Matthew Budd ad69657d02 Resolved a few more cppcheck/compiler warnings in core input module. 2020-06-15 22:53:45 -04:00
Matthew Budd e6329b911a Resolved cppcheck warnings in win/header_editor.cpp 2020-06-15 22:21:54 -04:00
Matthew Budd 96cba27965 Resolved cppcheck warnings in cheats.cpp. 2020-06-15 22:09:12 -04:00
Matthew Budd 9eaad6e14d Revolved Deallocating a deallocated pointer: buf warning in archive.cpp. 2020-06-15 21:58:13 -04:00
Matthew Budd ce03bf18e7 Resolved cppcheck warnings in OutputDS.cpp 2020-06-15 21:48:32 -04:00
Matthew Budd 9748d39169 Resolved dangerous usage of c_str(). The value returned by c_str() is invalid after this call 2020-06-14 20:11:59 -04:00
Matthew Budd c5bbd3cec5 Added uninitialized class members to constructor for debug window. 2020-06-14 19:55:36 -04:00
Matthew Budd f5e8b09200 Bug fix for enable/disabling of glx double buffering. Single buffering allows for faster emulation rates, double buffering is not allowing faster than 60hz due to vsync. 2020-06-14 10:15:47 -04:00
Matthew Budd a1c0e86026 Code cleanup, found that rendering of openGL graphics are limiting the max frame speed to 60 hz. Have not solution for it yet. 2020-06-13 20:07:01 -04:00
Matthew Budd b4b2cca9ec Bug fix for menu visibility toggle. 2020-06-13 12:51:57 -04:00
Matthew Budd 6de7a68149 Added a TODO for fixing the menu bar hide function. 2020-06-12 21:34:18 -04:00
Matthew Budd 6dd0ef841e Cleaned up unused variable. 2020-06-12 20:51:46 -04:00
Matthew Budd c440b8127e Bugfix for GUI hanging when gamepad config window is closed while waiting a button press. 2020-06-12 20:34:26 -04:00
Matthew Budd d340c1465e Removed the last of the SDL1 specific functions. 2020-06-12 19:48:51 -04:00
Matthew Budd 47ad3b1dee More SDL1 cleanup. 2020-06-12 19:40:46 -04:00
Matthew Budd 0a61bab99e More SDL1 cleanup. 2020-06-12 19:14:26 -04:00
Matthew Budd 4cbfed2a72 Clean up of input and video files. Removed SDL1 code. 2020-06-12 18:59:38 -04:00
Matthew Budd 1463e7c0f8 Added logic to now pass ALT + Return to the SDL event queue as the is fullscreen toggle that is handled by GTK. 2020-06-09 22:09:29 -04:00
Matthew Budd d086714040 Bug fix for full screen mode update. 2020-06-09 21:47:07 -04:00
Matthew Budd cfbe2dc5f3 Bug fixes for GL linear filters and double buffering options. 2020-06-09 09:23:32 -04:00
Matthew Budd 3e2802a2de Bug fix for switching between openGL and cairo graphics contexts. 2020-06-09 08:44:51 -04:00
Matthew Budd 9db334275f Added logic to allow for switching from openGL to cairo draw functions. There is still an issue with the GTK draw update stops getting called when switch from openGL to cairo. 2020-06-08 09:14:01 -04:00
Matthew Budd 79b796f790 Implementing secondary cairo interface. 2020-06-07 13:58:09 -04:00
Matthew Budd 5bbbd0e8e7 Successful use of GLX openGL inside gtk3 window. This eliminates the need for SDL video. 2020-06-07 10:54:00 -04:00
Matthew Budd 4f27c58856 Moved poor performing cairo draw routines into their own functions. Removed GtkGlArea experimental code that did not work. 2020-06-07 09:32:47 -04:00
Matthew Budd 76df04d830 Added an experimental shared memory interface to allow for the video window to be a separate process. 2020-06-06 22:53:34 -04:00
Matthew Budd 6b406e411f Bug fixes for SDL2 keyboard interaction. 2020-06-06 09:02:36 -04:00
Matthew Budd 8c2cea1ed4 Added logic to change how full screen mode works with cairo drawing. 2020-06-05 21:23:33 -04:00
Matthew Budd 1fc0725e94 Successful display of graphics using cairo. Not as efficient as other methods but works. 2020-06-05 21:08:53 -04:00
Matthew Budd 88e0c838e2 Merge https://github.com/TASVideos/fceux 2020-06-05 07:37:16 -04:00
Matthew Budd a59f1421b5 Added logic to refresh video display with last pass image data when inside debug loop. 2020-06-02 05:02:43 -04:00
Matthew Budd a25a5c914c Added a refresh list button to the active cheat list window to allow for the displayed list to be resync'd to the true active cheat list in case a new game ROM is loaded and new cheats are automatically loaded as a result. 2020-06-01 09:37:36 -04:00
Matthew Budd f929a7cc23 Added logic to cheat search window to make all sorting buttons insentive until the search reset button is hit once. 2020-06-01 09:32:51 -04:00
Matthew Budd a58f5dc5e0 Added logic to make cheat window edit/delete buttons insensitive unless a row is selected in treeview list. 2020-06-01 09:19:55 -04:00
zeromus 322c671ea7
Merge pull request #114 from owomomo/master
Bookmark description in the Hex Editor can be directly edit
2020-05-31 16:13:46 -05:00
zeromus 74b11ae84c
Merge pull request #103 from bbbradsmith/lua_zapper_set
zapper.set for lua
2020-05-31 16:13:29 -05:00
Matthew Budd 1ace69f5f9 Updated cheat list tree view to update entry fields when a line in the tree is selected with corresponding to the selected lines data. 2020-05-31 14:53:54 -04:00
Matthew Budd 51be2877ef Added logic to set registers via text entry boxes prior to running new instructions in debugger window. 2020-05-31 14:28:49 -04:00
Matthew Budd 8a0165f54b changed unimplemented functions on debugger window to be have insensitive widgets for now. 2020-05-31 13:53:07 -04:00
Matthew Budd acbd2cf3c8 Added logic to debugger to make breakpoint edit/delete button sensitive only when a breakpoint is selected in the tree view. 2020-05-31 13:48:58 -04:00
Matthew Budd 358a2309db Created separate debug menu for debugger and hex editor on main window. 2020-05-31 10:11:52 -04:00
Matthew Budd 34e8afe39d Bug fix for memory view window when handling large ROM displays. 2020-05-31 06:48:37 -04:00
Matthew Budd 9eab3f9e5d Added logic to sync memview activity coloring menu options at startup. 2020-05-30 19:44:30 -04:00
Matthew Budd 8c04403062 Added logic to allow for configurable coloring on memory view window. 2020-05-30 17:20:06 -04:00
Matthew Budd b7877f1a5e Added configurable fore and back ground color picking for memview window. 2020-05-30 11:26:36 -04:00
Matthew Budd a92874a5b6 Added logic to sync memory last pass values at startup. 2020-05-29 17:19:44 -04:00
Matthew Budd 7500446b2c Changed memory buffer setup to allow for color and activity data to be stored for each address. 2020-05-29 16:53:20 -04:00
Matthew Budd 6e33c48a1f Added memory view highlight activity coloring. Still TODO, add logic to switch colors in menu. 2020-05-29 15:00:33 -04:00
Matthew Budd d362161269 Added logic to only allow select key presses through to the textview widget on the debugger window. 2020-05-29 09:30:07 -04:00
Matthew Budd 5e0cbc1cbc Improved logic for hex editor button inputs. 2020-05-29 09:24:28 -04:00
Matthew Budd 0d9b9254ff memory viewer (hex editor) window viewport calculation improvement. Much more accurate and efficient than previous. 2020-05-29 06:52:53 -04:00
Matthew Budd 4c3bf6cf6c Removed automatic condition insertion on asm debug breakpoint entry window. 2020-05-28 21:57:40 -04:00
Matthew Budd 05de1a8356 Added PPU data display to debug window. 2020-05-28 21:54:14 -04:00
Matthew Budd 7d08906a89 Efficiency fixes for the debugger asm text view window. 2020-05-28 21:30:12 -04:00
Matthew Budd d15623b7e6 Added logic to seek the PC on the debug window every time a breakpoint is hit. 2020-05-27 06:46:20 -04:00
Matthew Budd 27e326ce90 Added seek to PC and seek to Addr logic. 2020-05-27 05:48:38 -04:00
Matthew Budd 64444129c3 Added callback functions for editing break cycle/instruction limit text fields 2020-05-25 20:44:39 -04:00
Matthew Budd 20af463419 Added a few hooks for break on cycles, instructions and bad opcode checkboxes. Still TODO add break cycle/instruction limit set logic. 2020-05-25 20:28:42 -04:00
Matthew Budd 41e1bdc592 Added logic to context menu to prefill breakpoint add popup. 2020-05-25 20:06:16 -04:00
Matthew Budd db17dc06e6 Added logic to capture asm list. 2020-05-25 09:28:22 -04:00
Matthew Budd c50b5581d6 Added logic to sync breakpoint edit window parameters to actual state upon opening. 2020-05-25 08:11:01 -04:00
Matthew Budd 2755c9cdb2 Added logic to allow for use of a enable checkbox to next to each breakpoint in the list 2020-05-24 21:31:29 -04:00
Matthew Budd 9f009a1850 Successful test of basic debugger functions. 2020-05-24 21:10:10 -04:00
Matthew Budd 613dd479d4 Added logic to set values for debugger window register displays. 2020-05-24 12:50:13 -04:00
Matthew Budd df236e3628 Added framework for breakpoint add/edit window. 2020-05-24 11:06:31 -04:00
Matthew Budd 4c199ef4fe Added initial framework for debugger window. 2020-05-23 23:25:28 -04:00
Matthew Budd 69790db498 Initial framework for debugger window in work. 2020-05-23 22:37:31 -04:00
Matthew Budd 40379a32dc Added a memory write boundary protection in the ram watch window to prevent users from writing into ROM memory area. 2020-05-23 16:28:43 -04:00
Matthew Budd c46d3e2a9d Added logic to clear edited row and column indices on null pointer error in RAM watch window. 2020-05-23 16:22:56 -04:00
Matthew Budd 484f299107 Added a NULL check to prevent crash in RAM watch window. 2020-05-23 16:20:40 -04:00
Matthew Budd 11d02a31c4 Added logic in memview window to make set address and value entry windows exit on an enter key press. 2020-05-23 16:09:14 -04:00
Matthew Budd 6947f2bd05 Bug fix for GUI initialization with a specified game on the command line. Sometimes the X-server needs a little more time to initialize the window. Added a short 0.1 sec usleep at startup to give X the time it needs. A few more cppcheck warning fixes made as well. 2020-05-23 15:08:03 -04:00
Matthew Budd 04a4b6de74 Added more functionality to the memview window. Now can view all memory types. New context menu allows for seeking to a new location by address, poking memory locations, and jumping from RAM to ROM. 2020-05-23 14:56:42 -04:00
Matthew Budd 9ac2803533 Added logic to get NES ROM address from RAM location for context menu. 2020-05-22 09:30:16 -04:00
Matthew Budd b731245171 Added a few context menu items. TODO create callback functions for them 2020-05-22 09:19:45 -04:00
Matthew Budd 475464cca2 Added logic to display a label showing the address of the cursor selected memory location in hex editor. 2020-05-22 09:00:07 -04:00
Matthew Budd c05c85bcfd Added popup context menu framework for memview. 2020-05-21 22:07:10 -04:00
Matthew Budd 364ae8c689 Added callback for context menu on memview window. 2020-05-20 21:48:39 -04:00
Matthew Budd 5db17d7913 Cleaned out treeview logic in favor of text view. Text view is much more efficient. 2020-05-19 01:00:14 -04:00
Matthew Budd 284a787104 bug fix for memory poke logic. 2020-05-19 00:51:03 -04:00
Matthew Budd fe4d1f85af Successful test of poking into RAM with hex editor in text view. 2020-05-19 00:30:24 -04:00
Matthew Budd 41cfd69fe2 Successful display of memview. 2020-05-19 00:03:30 -04:00
Matthew Budd 267966b0b3 Text View hex editor in work. 2020-05-18 22:03:58 -04:00
Matthew Budd 6460a3035b Tree view inner / outer slider functions but is not ideal. Going to try out text view object instead. 2020-05-18 08:29:05 -04:00
Matthew Budd 90482feac8 Memview successful initial test, but performance is slightly lacking. Going to change tree view logic. 2020-05-17 11:36:55 -04:00
Matthew Budd 3c10dcc1fd Added logic to allow for writing into memory via the mem view hex editor. 2020-05-16 23:50:58 -04:00
Matthew Budd 5834dd3661 Added memory view window framework. Still TODO memory poke functionality. 2020-05-16 22:17:24 -04:00
Matthew Budd 9dcad0b211 Bug fix for gamepad configuration when using keyboard inputs. 2020-05-16 18:50:29 -04:00
Matthew Budd c7f9a4257a Bug fixes for screen sizing at startup with a ROM specified on the command line. 2020-05-16 15:06:40 -04:00
Matthew Budd 74923eaccc Removed static hotkey string array from global header and added an accessor function. 2020-05-16 13:16:24 -04:00
Matthew Budd 26f36da7e7 Another bug fix for gamepad config loading at startup, the first fix was in the wrong place. Removed static video variable from header. 2020-05-16 11:13:24 -04:00
Matthew Budd 00e316b521 Bug fix for loading gamepad config at startup. 2020-05-16 10:40:57 -04:00
Matthew Budd 01c60c4dc1 Bug fix for displaying button names when reloading gamepad config window. 2020-05-16 10:14:37 -04:00
Matthew Budd e5e02e20f4 Bug fix for gamepad key name display when calibrating buttons. 2020-05-16 09:47:13 -04:00
Matthew Budd b63772b774 Removed debug print statement. 2020-05-16 09:19:25 -04:00
Matthew Budd c3e4db0faa Hotkey selected state cleanup. Sync gui menu selected state when state changes occur via hotkeys. Removed deprecated gtk widgets from sdl/input.cpp. 2020-05-16 09:09:36 -04:00
Matthew Budd 172dffec55 Changed window size variables in gui to be static as their is no reason to export them to the linker. 2020-05-15 17:08:13 -04:00
Matthew Budd 5173b85ac1 Added logic to check if the screen size has actually changed in the window configure event callback. Do not reset video is screen size is the same. This prevents annoying screen flickering during transitions to/from full screen mode. 2020-05-15 17:02:33 -04:00
Matthew Budd bcbac77084 When a lua script is provided on the command line with the --loadlua option. Added code to always resolve any relative file path to an absolute as the lua core changes the current working directory which then invalidates the relative pathing from where the current working directory was at the time the program had initially been started. 2020-05-14 23:47:57 -04:00
Matthew Budd 87d3db2406 Added screen dimension limits. Added some debug statements to pipeline script. 2020-05-14 18:16:04 -04:00
Matthew Budd 1ba5929ea2 Modified screen display logic to always center image in the center of the window. 2020-05-14 09:16:09 -04:00
Matthew Budd 9f615d6f81 Found a better way to clear the screen to a black background. 2020-05-14 07:55:06 -04:00
Matthew Budd c702a86b67 commented out window configure print statements. 2020-05-13 22:00:00 -04:00
Matthew Budd 575e090aff Ran indent program on new cheat and ramwatch cpp files to apply hard tabs. 2020-05-13 21:13:22 -04:00
Matthew Budd 699069b7ee Ran indent program to gui.cpp to re-apply hard tabs. 2020-05-13 21:07:31 -04:00
Matthew Budd 7ac726d415 Replaced deprecated gtk_key_snoop function with standard gtk key press/release event handling functions. 2020-05-13 09:24:31 -04:00
Matthew Budd 48bbec8fba Added logic to clear screen to black during startup and if a screen configure event occurs and no game is loaded. 2020-05-13 09:00:07 -04:00
Matthew Budd 42233b0425 Removed unused global window symbol for hotkey gui window 2020-05-13 08:36:35 -04:00
Matthew Budd c45c6c00cf Removed old menu comments from gtk gui. 2020-05-13 08:33:55 -04:00
Matthew Budd 61f55f3e28 Ensure that pallette variable has been freed before attempting malloc a new heap. 2020-05-12 22:45:08 -04:00
Matthew Budd 9583c0fbdd A few more bug fixes for the ram watch window. 2020-05-12 22:39:03 -04:00
Matthew Budd 57561ad563 Moved RAM watch window logic to its own separate file. 2020-05-12 22:13:22 -04:00
Matthew Budd 309cb00f93 Moved cheat window code to its own file. Created a cheat window class object to better manage multiple instances of the cheat window. 2020-05-12 20:14:11 -04:00
owomomo 2024d321b7 1. The description of the bookmarks in Hex Editor can be edited instead of delete and add again.
2. When click close button of the bookmark name window, the operation can be canceled.
3. Detail.
2020-05-12 17:25:23 +08:00
Matthew Budd 754e621735 Bug fixes for gtk hot key config window. 2020-05-11 00:47:31 -04:00
Matthew Budd dfd236c9d1 Fixed gtk window gui resizing logic. Can now resize by dragging the corners of the window with the mouse as well as through the vidio menu. 2020-05-10 23:38:36 -04:00
Matthew Budd d6a798962c Removed deprecated gtk_widget_modify_bg. 2020-05-10 17:29:14 -04:00
Matthew Budd bfaf429664 Removed deprecated GTK_STOCK usages. 2020-05-10 17:11:15 -04:00
Matthew Budd d87d5b2271 Fixed & character usage in authors string text in about window. 2020-05-10 16:42:45 -04:00
Matthew Budd 73a4efcad9 Finished reworking main menu. 2020-05-10 16:40:28 -04:00
Matthew Budd 81b9555ad0 Finished updating emulation menu to new non-deprecated widgets. 2020-05-10 16:24:44 -04:00
Matthew Budd ee35a5bab4 Updated options sub menu. 2020-05-10 15:32:32 -04:00
Matthew Budd 89895fdd18 Finished File menu of main menu bar. 2020-05-10 14:59:49 -04:00
Matthew Budd af36752585 Working on removing deprecated main menu and replacing with non-deprecated functions. 2020-05-10 11:17:59 -04:00
Matthew Budd 5a74646bb5 Removed use of deprecated gtk_alignment widgets 2020-05-10 10:18:57 -04:00
Matthew Budd 260b45273e Swapped out deprecated gtk table in favor of gtk grid on game pad configure window. 2020-05-10 09:54:25 -04:00
Matthew Budd b68aff598e Fixed a few more deprecated gtk function usages. 2020-05-09 21:00:51 -04:00
Matthew Budd 6ab46618fc Replaced a few more deprecated gtk function calls for their newer variants. 2020-05-09 20:47:47 -04:00
Matthew Budd 7610dea7fb Removed deprecated UI manager from the ram watch menu. Ram watch menu is now created by raw gtk functions. 2020-05-09 20:35:15 -04:00
Matthew Budd 3231589d25 Changed out depricated gtk_hbox_new and gtk_vbox_new in favor of gtk_box_new 2020-05-09 16:42:34 -04:00
Matthew Budd fcf8f57085 Changed memory tree views to use monospace and have vertical dividers for columns. 2020-05-09 10:36:55 -04:00
Matthew Budd f4985e4add Merge branch 'master' into linux-cheats 2020-05-09 09:32:10 -04:00
Matthew Budd 3f2ab57a20 Merge branch 'master' of https://github.com/TASVideos/fceux into development 2020-05-09 09:23:28 -04:00
Matthew Budd 77471eb1a0 Merge branch 'development' into linux-cheats 2020-05-08 23:55:29 -04:00
Matthew Budd 70a804e90f Fixed a few code errors identified by cppcheck static code analyzer.
Fixed incorrect error handling of realloc function to prevent memory leak.
Fixed a few uninitialized local stack variables.
Changed (1 << 31) to (1u << 31) to fix error stating that a signed 32 bit integer shifted by 31 bits can result in undefined behavior.
2020-05-08 23:30:31 -04:00
Matthew Budd 305e8b58e8 Added memory write functionality to RAM watch window. 2020-05-07 23:25:33 -04:00
Matthew Budd 27cbbdf534 Added logic to load/save RAM watch files. 2020-05-07 21:31:55 -04:00
Matthew Budd c901c7273d Added directly cheat list cell editing functionality to gtk GUI. 2020-05-07 09:49:03 -04:00
Matthew Budd b4f4f816d7 Added logic to allow for RAM watch display updates to be non-destructive. 2020-05-06 09:00:53 -04:00
Matthew Budd 4490f650f1 RAM watch entry window bug fixes. 2020-05-06 08:36:08 -04:00
Matthew Budd ab5d3f5f14 Successful view of memory in ram watch window. Still TODO, added rest of button functionality. 2020-05-06 00:17:59 -04:00
Matthew Budd 19deda1314 Added initial framework for RAM watch window. 2020-05-05 23:08:50 -04:00
Matthew Budd d1fd5a8e2d A few bug fixes while testing the cheat window. 2020-05-05 20:42:25 -04:00
Matthew Budd 45d88df6b0 Hooked up cheats pause while window active function. 2020-05-05 19:56:38 -04:00
Matthew Budd 30aec1e534 Added cheat modification via update button logic. 2020-05-05 08:18:41 -04:00
Matthew Budd 7bc778fd0e Added active toggle functionality to cheat list window. 2020-05-05 08:06:08 -04:00
Matthew Budd d081c68db3 Successful loading of cheat codes from file via cheat window. 2020-05-05 00:18:15 -04:00
Matthew Budd add91354de Successful test of Add, remove, and update functions to the active cheat list. 2020-05-04 23:50:33 -04:00
Matthew Budd 37bb110601 Added file chooser function for loading cheats from file. 2020-05-04 22:01:15 -04:00
Matthew Budd 52cc2629eb Successful initial test of cheat search functionality. 2020-05-04 21:42:56 -04:00
Matthew Budd 7416ad2fdb Added initial layout for gui cheat window. 2020-05-03 16:29:28 -04:00
CaH4e3 d89ead783e
Merge pull request #98 from owomomo/master
Add Multiple RAM Watches At Once In Edit Watch Window
2020-05-03 22:28:19 +03:00
CaH4e3 12667209de
Merge pull request #110 from bbbradsmith/toosmall_chrram
CHR size < 1k allows NES program to corrupt memory
2020-05-03 22:27:44 +03:00
Matthew Budd 9844caf69d Bug fix for command line game genie enable logic with linux based gtk GUI. GUI was forcing game genie to disabled at startup which was overriding command line selection. The GUI logic has been fixed to sync the state of menu game genie toggle box to the desired startup configuration of game genie. 2020-05-02 19:57:11 -04:00
bbbradsmith 2cdb283a64 iNES_Init error reporting 2020-05-02 00:42:44 -04:00
bbbradsmith e8597862f1 CHR size < 1k allows NES program to corrupt memory because VPage is 1k granularity
returning 0 from iNES_Init is not ideal, error is "unsupported mapper" but at least it's an error
also adding CHRmask1/2/4/8 fallback, not sure if needed but looks suspicious for <8k
2020-05-02 00:20:44 -04:00
zeromus 16a965d15c oops, had that backwards (re #106) 2020-04-14 18:09:09 -04:00
zeromus fadb200856 in 01dfbf5afa I broke the disable-sprite-in-leftmost-8-pixels part of the oldppu. this fixes it. fixes #106 2020-04-14 16:44:45 -04:00
g0me3 5d872472ef - N106 sound issue requested fix, see comments
- new inex 2.0 mapper 406 added without flash support though
- dpcm data log now does proper memory area logging (not worth actually, always be like C000 lol)
2020-04-09 20:54:05 +03:00
owomomo 5d7c3a6631
Merge pull request #18 from TASVideos/master
Update code to the newest
2020-02-23 10:22:00 +08:00
bbbradsmith 747fba7711 Virtual Boy controller forgot signature bit 14 2020-02-08 15:58:24 -05:00
bbbradsmith b22753762f Virtual Boy controller support 2020-02-08 15:58:24 -05:00
owomomo 7a278b10a8 RAM Watch: Adding multiple watches in the dialog, when adding multiple watches from other window, the watches is also in the address edit control.
I realized that the watch operation need to be decoupled from the RAM Watch list, but things seem get too complicated, hoping this is not get even worse.
2020-02-05 22:56:30 +08:00
owomomo a9c4bc9592 1. Trying to find a more efficient way to know which byte has a cheat. Since the cheat map occupies a lot of memory, I decided to make it only exists when necessary.
2. Reorganized some codes.
2020-02-01 16:51:33 +08:00
owomomo c3d0d40aa6 Trying to find a more efficient way to know which byte has a cheat. It might be memory cost but it's 2020. 2020-02-01 01:00:34 +08:00
owomomo c830d2cc7d ... 2020-01-31 20:13:41 +08:00
owomomo 935cdaf178
Merge pull request #17 from TASVideos/master
Sync code to the newest
2020-01-31 19:46:54 +08:00
Devine Lu Linvega f83e488a65
Fixed type in lua-engine.cpp (#95) 2020-01-30 18:26:52 -05:00
g0me3 fb8d46d969 fix for cdl sram logging hack crashes nsf logging (fixed #94) 2020-01-29 20:44:49 +03:00
g0me3 18165938d4 preliminary, basic hookup of Family Network System base board + MMC1 cassette emulation 2020-01-16 21:33:37 +03:00
g0me3 4fe5da841c forgot to remove debug code 2020-01-12 17:07:23 +03:00
g0me3 db003f841d fixed #90 (debug breakpoint missing if conditions used) 2020-01-12 16:56:37 +03:00
g0me3 e43fe75b67 forgot to upload file 2020-01-04 13:48:32 +03:00
g0me3 6abfe09caf Famicom Network System controller added
misc fixes to mappers
2020-01-04 13:16:54 +03:00
dinkc64 0b4be4b639 fds.cpp: new fds image handling, fixes saving issues with some games (Bubble Bobble, Super Lode Runner II, ...) 2019-12-16 00:45:14 -05:00
bbbradsmith c4ee998148 zapper control from lua 2019-12-15 15:31:09 -05:00
Andypro1 ed4f5d0000 Moved lua memory_writebyte() to legacymemory_writebyte() and changed the memory_writebyte() implementation to avoid the legacy cheat engine code. (#67) 2019-11-22 23:29:25 -05:00
Brad Smith 88d7f392a9
MMC5 arbitrary WRAM size support via iNES 2 (#84) 2019-11-22 23:22:08 -05:00
Brad Smith fbabd180eb
restore symbolic addresses for debugger
some of the debugger addresses should not be filtered, as strings can be used like NMI, RST, IRQ, LOAD, INIT, PLAY, NMI1, NMI2, NMI3
2019-11-10 21:10:40 -05:00
Brad Smith 5c8421d410
Palette mirror fix (#81)
* ppuview and memview fixes for palette mirroring
* New PPU $2001 rendering off palette mirroring fixed
2019-11-08 00:03:31 -05:00
g0me3 25c0b96c30 mapper 547 (ines 2.0 version of KONAMI-QTAi UNIF board) 2019-10-25 20:52:08 +03:00
owomomo 829c07bc3c
Merge pull request #16 from TASVideos/master
Sync code to the newest
2019-10-20 00:44:34 +08:00
g0me3 0fc18be6b8 mapper 15 - fixed regression by previous fixes (waising / subors does not work properly with CHR write protection on mode 0) 2019-10-02 20:03:38 +03:00
norill 5ca7f608f7
Update 15.cpp
changes in accordance to the reverse-engineered mapper schematics:
- changed bank mode 1 mapping CPU $C000-$DFFF from "fixed to last bank" to "B OR 7" to support multiple 128KiB UNROM games in one cart
- latch D.7 bit ignored outside bank mode 2
- fixed latch D.6 bit interpreted as bank number bit
2019-10-02 18:30:36 +02:00
g0me3 8b1c405d95 mapper 15 chr protection implemented 2019-10-01 22:01:30 +03:00
owomomo 3fd6f9cb1e
Merge pull request #15 from TASVideos/master
Sync code to the newest
2019-09-22 14:29:33 +08:00
deep-thought 878245fedf Altered SCons build scripts to work with Python 3. 2019-09-10 17:05:22 -06:00
g0me3 63421d411b vrc5 extended ppu rendering simulation fix 2019-08-07 01:17:57 +03:00
owomomo 2e6b728e57
Merge pull request #14 from TASVideos/master
Sync code to the newest
2019-07-29 11:02:15 +08:00
Brad Smith 72120b0bb9
Windows 64-bit build support (#66)
* correcting x64 configurations to actually use x64
defining NOMINMAX to fix std::max error

* more preprocessor definitions for x64

* 64-bit libraries from the last published version of DXSDK with dinput

* should define WIN64 as well? unfortunately seem to require retention of WIN32

* added an x64 build of luaperks.lib, this compiles links and runs now

* relocate win32 luaperks.lib to src/drivers/win/lua/win32 and leave a note explaining it

* luaperks.lib x64 needed to be /MT
two more missing x64 libs
debug x64 configuration was set to compile C++ as C?

* importing the rest of the usable WIN32 preprocessor defines, debugger now functions!

* revert unnecessary VS solution version change

* 64-bit lua working (fixed the 64-bit build of luaperks.lib)

* VSUIENTRY hashes are unsigned, not signed

* more hashes that are actually unsigned

* fix a few pointer to int casts in lua console

* fix a few more pointer truncations in windows dialog stuff
a few printf arguments need a cast to int

* explicit size_t cast to quiet spurious warnings on an inline function
2019-07-23 15:12:03 -04:00
g0me3 1f5ce9e120 fix to prev, now all ROMs are happy 2019-07-22 13:48:49 +03:00
g0me3 a3d4db6b1a fix for #68 (mapper 227 chr write protection emulation) 2019-07-22 13:32:42 +03:00
owomomo 50bbacfb4d Detail 2019-07-12 15:46:39 +08:00
owomomo ddf760c6b6
Merge pull request #13 from TASVideos/master
Sync code to the newest.
2019-07-04 01:09:57 +08:00
g0me3 57d0b92a0f 8 times lesser conversion table for previous lol. 2019-06-30 18:58:16 +03:00
g0me3 d5896a8b93 removed debug assert for prev 2019-06-30 14:04:10 +03:00
g0me3 7c9dca50bd new unif "KONAMI-QTAI" board (VRC-V code name) along with PPU hack for it (16-bit extra NT like in MMC5) for both New and Old PPUs. very hacky for new ppu, sorry. 2019-06-30 14:00:59 +03:00
owomomo a9604c162f Re-attach my changes to the conflict file. 2019-06-29 10:53:44 +08:00
owomomo f5b6b51070
Merge pull request #12 from TASVideos/master
Sync code to the newest
2019-06-29 10:39:32 +08:00
owomomo 56f27ee194 Temporarily revert my changes to solve conflict 2019-06-29 10:39:13 +08:00
owomomo c1e94dd999 ... 2019-06-29 10:35:21 +08:00
owomomo 297ff8ee31 ... 2019-06-29 10:34:07 +08:00
owomomo 5d443badea ... 2019-06-29 10:28:24 +08:00
CaH4e3 97c9cb0068
Merge pull request #62 from bbbradsmith/dlgproc_fix
DLGPROC and SetWindowLong fixes
2019-06-29 00:12:13 +03:00
bbbradsmith 17e36e9882 lua library table registration needs an extra stack clear (is overflowing) 2019-06-27 03:14:12 -04:00
owomomo 7dde5467fd 1. Limit text input for Edit watch dialog and ram search.
2. As bbbradsmith in Pull Request #62 mentioned, SetWindowLong is replaced by SetWindowLongPtr for 64 bit compatible, I partially changed those written by myself.
2019-06-27 00:53:52 +08:00
owomomo fb0f6ee35f ... 2019-06-24 22:39:02 +08:00
g0me3 705f1c905c KT-008 handling fix for FF Xn games. probably they are the same mapper with a set of different modes switching by specific bits (TODO, check the hardware: i have FFX games, but haven't any KT-008 games!) 2019-06-24 15:52:06 +03:00
owomomo 2d6bdcd0d1 ... 2019-06-24 20:32:02 +08:00
owomomo 8a3edc18e3
Merge pull request #11 from TASVideos/master
Sync code to the newest
2019-06-24 20:30:17 +08:00
owomomo 25b67593f6 ... 2019-06-24 20:25:08 +08:00
owomomo 07c897df91 ... 2019-06-24 20:23:11 +08:00
owomomo 547dcd3a59 Detail bug fix 2019-06-24 20:16:01 +08:00
bbbradsmith db175c358f cheat.cpp has one more DLGPROC BOOL return fix that I missed 2019-06-21 15:51:44 -04:00
bbbradsmith 339ba7c923 SetWindowLongPtr needs to use LP defines, not L 2019-06-21 15:47:52 -04:00
bbbradsmith 2396d1c702 Replace SetWindowLong with SetWindowLongPtr for 64-bit compliance 2019-06-21 15:02:11 -04:00
bbbradsmith 850390e5ba Merge branch 'master' into dlgproc_fix 2019-06-21 14:15:41 -04:00
bbbradsmith c33ab17da4 DLGPROC return type is INT_PTR, not BOOL and not LRESULT. These are compatible return types in 32-bit but not 64-bit. 2019-06-21 14:03:05 -04:00
Nathan Tolbert 5a59e8522d fixes https://github.com/TASVideos/fceux/issues/60 - only prompt about cheats on windows build 2019-06-21 11:25:06 -05:00
owomomo d138a01860 1. Add popup tip for "Auto load / save with game" checkbox, because its tri-state may be perplexed for some reason.
2. Fix a bug, when the cheat editing controls lost focus, but editing mode is still there, which makes case EN_UPDATE triggered when user is not typing in them, that's an inappropriate circumstance. It might make the cheat editing control shows nothing when selecting a cheat.
3. Re-arranged some controls in resource file.
4. Changed some directory dialog logic, use defined ID rather than hard-code the actural number.
5. Detail.
2019-06-21 19:59:57 +08:00
g0me3 e1f52e6ffb little bit win gui polishing 2019-06-20 22:32:27 +03:00
g0me3 9ab9fd1e82 fix watch edit dialog 2019-06-20 22:04:00 +03:00
CaH4e3 3b8928fd50
Merge branch 'master' into binary-view-on-ram-watch 2019-06-20 21:52:55 +03:00
Moliman 647eb5ab3d Add binary data type on RAM watch
* Currently support only 1 byte size
2019-06-19 22:00:11 -04:00
owomomo fee4fc83a8 1. Add more controls to limit input text.
2. Changed limit input behaviour to match the system default ES_NUMBER.
2019-06-20 01:58:35 +08:00
owomomo 4e3473ac5d 1. Fixed accidentally added the cheat name control to the limit list.
2. Add text limit to Memory Watch for experiment.
3. Make the IDs of controls in Memory Watch predefined rather than directly coded, that's not quite standard in programming. Calculations to ID is not always trusted as they are automatically determined by the development tool.
2019-06-19 18:33:50 +08:00
owomomo f0396ef980 1. Fixed accidentally added the cheat name control to the limit list.
2. Add text limit to Memory Watch for experiment.
3. Make the IDs of controls in Memory Watch predefined rather than directly coded, that's not quite standard in programming. Calculations to ID is not always trusted as they are automatically determined by the development tool.
2019-06-19 15:53:47 +08:00
owomomo 56f0db87fa 1. Experimental limit the input characters for some edit control.
2. Separated cheat code and game genie in Cheat window.
3. Don't show a game genie code when affected address is under 0x8000.
4. Detail: set font for some edit control, replaced some static global variable.
5. Other details.

By the way, why there're so many useless brackets in some functions?
2019-06-19 13:14:27 +08:00
owomomo cc31ee1a37 1. Experimental limit the input characters for some edit control.
2. Removed HWND pwindow, since it's ambiguous and not too much used. The pallete window use it's own global HWND variable.
2019-06-18 16:56:10 +08:00
owomomo 9fd9841d6f ... 2019-06-18 11:50:28 +08:00
owomomo 4adb28e1d3 ... 2019-06-18 11:48:32 +08:00
owomomo 5a80b67e57 Rip the dialog position calculating code to a function and use it in more dialogbox. 2019-06-18 11:47:08 +08:00
owomomo 17a36d9b9f Slightly adjusted the UI of header editor. 2019-06-14 16:38:41 +08:00
owomomo 29b36a801d Cheat console:
1. Added a global switch for all cheats, it is checked by default. Check or uncheck it can quickly tweak all cheats enabled or disabled. It's not game specific and effective to all games.
2. Added a checkmark to check behaviour of automatically load cheats.
3. Fixed a wierd bug in loading names of cheats from file.
iNES Header Editor:
4. Disable iNES header editor menu when currently loaded game is not in iNES format.
Others:
5. Some of the checkbox passed parameter MF_CHECKED, the right one is BST_CHECKED, though they have the same value.
6. Code/Data Logger is created by CreateDialog(), but destroyed by EndDialog()? A non-modal window should be destroy by DestroyWindow(), EndDialog() is for DialogBox(). It seems nobody noticed this bug for years.
7. Detail.

Currently there are some opposite tweaks in the config file for the new feature in cheat console, for example the unchcecked state is 1 in config file, that's for backward compatibility.
The iNES header editor might not quite stable as newly baked from the oven, there might be some improvements to its code.
2019-06-12 23:02:20 +08:00
owomomo fb1d489cfa Cheat console:
1. Added a global switch for all cheats, it is checked by default. Check or uncheck it can quickly tweak all cheats enabled or disabled. It's not game specific and effective to all games.
2. Added a checkmark to check behaviour of automatically load cheats.
3. Fixed a wierd bug in loading names of cheats from file.
iNES Header Editor:
4. Disable iNES header editor menu when currently loaded game is not in iNES format.
Others:
5. Some of the checkbox passed parameter MF_CHECKED, the right one is BST_CHECKED, though they have the same value.
6. Code/Data Logger is created by CreateDialog(), but destroyed by EndDialog()? A non-modal window should be destroy by DestroyWindow(), EndDialog() is for DialogBox(). It seems nobody noticed this bug for years.

Currently there are some opposite tweaks in the config file for the new feature in cheat console, for example the unchcecked state is 1 in config file, that's for backward compatibility.
The iNES header editor might not quite stable as newly baked from the oven, there might be some improvements to its code.
2019-06-12 22:16:01 +08:00
owomomo 5ef8394745 Merge branch 'iNESHeaderEditor' 2019-06-12 00:42:09 +08:00
owomomo 0dbcce537e Detail 2019-06-12 00:35:56 +08:00
owomomo 8ae26f4b72 Detail 2019-06-12 00:28:29 +08:00
owomomo 5b1805b3e4 Detail 2019-06-12 00:18:48 +08:00
owomomo 02df3d6993 Sync the code to master branch. 2019-06-11 17:39:30 +08:00
owomomo f3d1b270b5 Add an export button to cheat dialog. 2019-06-11 15:14:53 +08:00
owomomo 0c9e7659d9 Detail 2019-06-10 20:59:36 +08:00
owomomo 3b54181e4d Merge branch 'master' of https://github.com/owomomo/fceux 2019-06-10 17:27:10 +08:00
owomomo d87970f4ad ... 2019-06-10 17:25:37 +08:00
owomomo b114ba4f4d
Merge pull request #8 from TASVideos/master
Sync code to the newest
2019-06-10 17:15:38 +08:00
owomomo 9369bed6ec New feature: iNES head editor 2019-06-10 14:27:57 +08:00
zeromus 7047a998fa
Merge pull request #53 from owomomo/master
Attempt to fix Issue #52
2019-06-06 13:34:59 -04:00
zeromus bf372552bc fix overflowing buffer made worse by 0d26e6f or possibly created by that commit. fixes #30 better.
the debugger was replacing comments and names inside a buffer returned from the old portable disassembly function, which was returning a privately retained 64 byte buffer. previously names were limited to 30 characters, so it's possible expanding names in disassembly never blew that buffer.

testing of the 0d26e6f commit either stressed it harder than ever before, or hard enough to break it for the first time

solved by copying the disassembly buffer into a new buffer for expanding address labels to names, etc
2019-06-06 13:33:45 -04:00
owomomo 959c94fcdf Attempt to fix Issue #52 2019-05-23 18:59:30 +08:00
owomomo 91c408468a Attempting to fix Issue #43. 2019-05-11 00:06:43 +08:00
owomomo a680d67fa1
Fix weird compile error.
it's quite strange that the macro define missed a line feed.
2019-05-10 19:18:30 +08:00
owomomo b93ea26b32 1. Since the radio switch is not quite necessary in cheat window, I canceled it to freely edit style.
2. After some nightly consideration, I decided to remove some unused resource IDs from resource file, some of them were obseleted, renamed, mistyped or temporary, currently nothing was corrupted...
3. Detail.
2019-05-10 18:53:41 +08:00
owomomo c927728736 1. Since the radio switch is not quite necessary in cheat window, I canceled it to freely edit style.
2. After some nightly consideration, I decided to remove some unused resource IDs from resource file, some of them were obseleted, renamed, mistyped or temporary, currently nothing was corrupted...
3. Detail.
2019-05-10 18:47:24 +08:00
owomomo 0713de844c 1. New cheat list box 0.0.0.4 Alpha, separated the normal cheat adding method and the cheat code/game genie method. While you're inputting the values, they are synced to the formatted string which is very convinience. In the past, the game genie was added from the name edit control, now the name is separated and the code can have a name even if it's a game genie.
2. Solved a problem of the add/editing watch dialog when pop up repeatedly from multiple places, because there are 3 places can pop up it now.
3. Fixed a bug when loading cheats from file crashes the emulator.
4. Detail.
2019-05-10 02:17:16 +08:00
owomomo 07f0c1af2c 1. Fix go to hex editor in possiblilities list doesn't select the address.
2. Detail.
2019-05-08 21:05:43 +08:00
owomomo 885bc1e889 1. Fix freeze ram in Hex Editor doesn't refresh the related window.
2. detail
2019-05-08 17:24:45 +08:00