mupen64plus / mupen64plus-user-issues

Issue reports from users go here
http://www.mupen64plus.org/
17 stars 3 forks source link

Inputting cheats from 'write' in debug mode of console ui #715

Closed miker2049 closed 4 years ago

miker2049 commented 5 years ago

is it possible to do this? Such that cheats could be enabled on the fly if we are just using the console UI? I assume there is a translation of gameshark code into something more raw, but having trouble figuring that out.

richard42 commented 4 years ago

No, this cannot be done with the current code. The "write" command in the debugger writes to the memory of the emulated N64 system. A cheat code however gets stored in the memory of the emulator, and processed by a virtual machine which is part of the emulator itself. In order to achieve this, someone would need to add new commands to the debugger UI in the mupen64plus-ui-console application, and pass the gameshark codes into the emulator via it's shared library API.