Hmmm got an idea with DB's command:
Code: Select all
{$lua}
if syntaxcheck then return end
LaunchMonoDataCollector()
function QuitGame()
local method = mono_findMethod('UnityEngine', 'Application', 'Quit')
local domain = mono_enumDomains()[1]
local args={}
args[1]={}
args[1].type=vtDword
args[1].value=0x00 --first param : int exitCode
mono_invoke_method(domain, method, 0, args) -- its public static - no instance needed
monopipe.destroy()
return "assert(true)"
end
[ENABLE]
return QuitGame()
[DISABLE]
it also works if you set it to Alt+F4 hotkey
btw while you tested my breakpoint code, did you use Alt+F4 to end the game or did you use the "normal" way to end the game with the button in the main menu?
the breakpoint method will only work if you dont force close the game with Alt+F4.
How to use this cheat table?
- Install Cheat Engine
- Double-click the .CT file in order to open it.
- Click the PC icon in Cheat Engine in order to select the game process.
- Keep the list.
- Activate the trainer options by checking boxes or setting values from 0 to 1