Commit graph

5 commits

Author SHA1 Message Date
olejl
11bc4c1ab2 Merging all changes from trunk revision 304:1340 to the r0304-rerecording branch. Also added some initial QT4 GUI. 2009-03-10 11:29:34 +00:00
James Hood
ef14c2cabd Added cheat system support such that if a cheat is disabled during gameplay, the original memory values before the cheat was applied will be written back to memory to attempt to reverse the cheat.
For example, before this fix, if you enabled the "Mario flies without wingcap" cheat during gameplay, it would work, but if you then disabled it during gameplay, Mario would still be able to fly. Now it correctly restores the old memory values so Mario can't fly anymore after you disable the cheat. Note, because cheats are basically writing to a random area of memory, this function may not always restore the previous state depending on the way that area of memory is used by the game.
2008-04-24 07:40:31 +00:00
James Hood
d223e7530d Made cheat dialog prettier, i.e., used table layout widget to line up form widgets more neatly. 2008-04-24 05:50:20 +00:00
James Hood
16a274adb6 -Rewrote cheat dialog to handle add/edit and enable of cheats all in one dialog.
-Removed Cheat menu and replaced it with "Cheats..." menu item in the Options menu.
-Modified alert_message and confirm_message so they handle line wrap of the message internally, so now it's no longer necessary to insert newline chars into strings passed to alert_message and confirm_message.
-added list_find_node utility function to util.c.
-added utility functions to create/delete cheat structures for use by the gui.
2008-04-23 06:46:47 +00:00
James Hood
2baec5c8eb Added cheat menu and implemented dialog to enable/disable cheats during gameplay. This dialog does not allow you to add/edit cheats. That's coming soon. 2008-04-14 19:32:07 +00:00