Commit Graph

2257 Commits

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