Commit Graph

2391 Commits

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