root670 / CheatDevicePS2

Game enhancer for PlayStation 2 similar to Action Replay, GameShark, and CodeBreaker. (No longer in development)
GNU General Public License v3.0
79 stars 18 forks source link

Hang if engine is installed more than once #29

Closed root670 closed 4 years ago

root670 commented 4 years ago

Describe the bug If the .init() function of the engine is run more than once it will loose the original address to SetupThread() and cause a hang. This happens when loading CheatDevice after activating IGR in OpenPS2Loader.

To Reproduce Steps to reproduce the behavior:

  1. Launch CheatDevice
  2. Boot to OpenPS2Loader with cheats enabled
  3. Launch game in OpenPS2Loader
  4. Activate in-game-reset (IGR) with L1+L2+R1+R2.
  5. Launch CheatDevice again
  6. Boot a disc or ELF with cheats enabled
  7. Console will hang requiring a manual power cycle

Expected behavior The disc or ELF should launch with the engine enabled regardless of the environment state.

Environment (please complete as much of the following information as possible):