Commit Graph

38 Commits

Author SHA1 Message Date
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 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 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 9adcbf16cb 1. Fix crash when add multiple watches in RAM Search window, and adding multiple watches here can be batch named.
2. New cheat list box 0.0.0.3 Alpha, changed the possibilities box to a CListCtrl rather than a simple CListBox, use a map for its buffer. It may not quite efficient currently, but I personally think it's much better than adding and deleting the items repeatedly every frame, and now its item can be selected while emulation is running, although there's not much usage for this...
3. added several context menus to possible list, now you can directly add address to memory watch or ram watch, or go to hex editor from here, currently it's still a single select list.
2019-05-08 13:55:53 +08:00
owomomo a3280d664d 1. New cheat list box 0.0.0.1 alpha, changed the toggle cheat from double click to selecting checkboxes in the item. It can show the code and name in the same time.
2. Fixed an ancient bug of cheat dialog that importing new cheats makes old existing cheats uneffective.
3. Restructured some cheat searching type to macros since the meaning of the mysterious number is unclear. Maybe the switch case was more efficient than if else... or not?
4. Use a temporary variable rather than a global one to indicate whether the null file pointer is cased by user clicking the cancel or close button of the open archive dialog or a loading error.
5. When recording a movie with cheats, show warning to the user and asking for disabling them.
6. Removed some seems like unused variables, hope this didn't break compiling crossing platforms.
2019-05-02 03:13:05 +08:00
g0me3 60b314feb3 vrc5 mapper update, prepare to add extra ppu render for it
cheats.cpp int converions warnings fix
change default tool index for vc project. if you have problem with it, feel free to revert. but i can't compile with just "8.1" in there sadly...
2019-04-27 21:35:59 +03:00
owomomo 99636689d7 1. Mark cheat affected address range in RAM search and RAM watch.
2. RAM Watch now can give separator a name.
3. Reconstruct watch manage logic, removed IDD_PROMPT.
2019-04-06 00:41:35 +08:00
owomomo 9407df7d2c Ram search show cheat count in current range. 2019-01-09 17:28:05 +08:00
owomomo 274ac1b770 1. When cancel from archive loading dialog, don't show loading error boxes and the current playing game doesn't close.
2. Completely rewrite shortcut key displaying logic, now it is not only shown in main menu, but also in context menu.
3. Fix bugs that TAS Editor tooltips shown shortcut keys were not sync when hotkey was changed.
4. If cheat is activated when loading a movie, confirm to disable them as they could cause playback problems.
5. When switching to new ppu with overclocking enabled, prompt to user that new ppu doesn't support overclocking.
6. Other minor details about the UI.
2018-12-28 23:55:24 +08:00
zeromus 0307e3b827 migration tidying (build master from trunk) 2018-04-08 17:35:15 -05:00
punkrockguy318 2be5084a7b create new subversion repo structure (trunk, tags, branches)
[[Split portion of a mixed commit.]]
2013-03-15 19:00:14 +00:00
ansstuff 3cb74f7780 * Cheats: added "Add from CHT file..." button 2012-12-29 14:32:02 +00:00
CaH4e3 43ee931dec cleanup and version bum... hmmm (not no mention something else) 2012-10-21 16:40:04 +00:00
zeromus 3acb751ea4 commit cheat perks patch from rimsky82 [ https://sourceforge.net/p/fceultra/bugs/512/ ] 2012-09-30 18:43:15 +00:00
punkrockguy318 349a5bc905 sdl: fix a segfault in the cheat menu (sf bug #242) 2012-08-06 17:46:14 +00:00
punkrockguy318 449ac4352f updated FSF license in COPYING license file and source and header files 2012-08-04 22:33:16 +00:00
punkrockguy318 18b1eaace1 trivial comment removal 2012-08-04 21:46:20 +00:00
punkrockguy318 134b205db6 cheats: parse cheat files with non-ascii characters properly (sf #524) 2012-08-04 21:45:41 +00:00
CaH4e3 565f063fa5 varous bugfixes, xstring trimming functions logic bugs, etc
some refactoring, some wtfs... ;)
2012-03-17 16:29:56 +00:00
zeromus 07dde626de don't lose cheat compare value when toggle cheat enables through UI (fix #3423777) 2011-10-15 18:59:07 +00:00
qeed 0d63ef203a added wrapper around places that uses malloc to use FCEU_dmalloc, for debugging purpose if the need comes up 2010-09-19 00:00:38 +00:00
ugetab 046617c693 Added player 3 and 4 to autohold notification window. Made FCEU_DispMessage able to display to different screen locations to do it. Fixed up the input display code for autohold.
Wow, that's a lot of stuff changed for something so basic.
2010-05-16 04:18:49 +00:00
adelikat b47f4e0e0e Lua - memory.readbyte will now recognize frozen addresses (I hope this doesn't have unintended consequences) 2009-03-08 20:03:47 +00:00
adelikat b7c47221c7 Win32 - cheats search lists number active cheats, freezing addresses in hex editor updates cheats dialog, hex editor has minimize and maximize buttons 2008-12-16 05:31:58 +00:00
adelikat 3c9288c253 Win32 - better handling of UpdateFrozenList() 2008-12-15 18:53:48 +00:00
adelikat 7148bf9de2 Win32 - 1) prevent user from freezing more than 256 addresses, 2) Memwatch will display frozen addresses in blue, 3) Memwatch - menu item for collapse window 2008-12-15 05:00:34 +00:00
adelikat ca13b2ecaa Win32 - Hex Editor - prevent the user from freezing more than 256 addresses at once 2008-12-14 22:08:33 +00:00
qfox 475ac06f2a Ah, I can fix this. Added extra newline to prevent stupid warning. 2008-08-11 22:00:52 +00:00
zeromus cf65728642 lua!!!! 2008-07-23 06:54:14 +00:00
adelikat 8a89a598f8 If cheats file loaded, message is sent to window 2008-07-06 02:35:00 +00:00
zeromus e0a14909f0 faster compiles (mappers include 1/3 as much code now)
fix some memory leaks by changing the path generation APIs to return std::string.. but it still gets strdupped by a lot of clients. 
switch over more movie and savestate code to use iostreams instead of stdio
remove the temporary savestate stuff for more tasing speed hopefully
2008-06-17 06:55:07 +00:00
jeblanchard 84e7d10f38 Kill many warnings. Note: may waste bytes of memory! 2008-06-10 16:06:14 +00:00
zeromus 1e539ad681 phase 1 of new movie system
we can now round trip a text movie format
2008-05-23 09:58:38 +00:00
adelikat 0b112b5ef4 2008-05-15 15:58:57 +00:00
mauzus 909245915b bugfix: [1960354] FCEU should log a message when loading a .cht file 2008-05-13 03:51:35 +00:00
zeromus cd427263da moved some util files to utils directory 2006-08-01 05:50:19 +00:00
zeromus 80d0d46d73 moved fceu to its own folder to make room for other projects
[[Split portion of a mixed commit.]]
2006-07-29 05:46:15 +00:00