Commit Graph

2575 Commits

Author SHA1 Message Date
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