fix: Reset the emulator after startup.
This commit is contained in:
parent
9f8db04757
commit
118fbb9e9f
1 changed files with 1 additions and 0 deletions
|
@ -277,6 +277,7 @@ local startupCallback = nil
|
||||||
local lastTime = -1
|
local lastTime = -1
|
||||||
local function breakHandle()
|
local function breakHandle()
|
||||||
if startupCallback ~= nil then
|
if startupCallback ~= nil then
|
||||||
|
emu.reset()
|
||||||
emu.removeMemoryCallback(startupCallback, emu.memCallbackType.cpuExec, 0x0000, 0xffff)
|
emu.removeMemoryCallback(startupCallback, emu.memCallbackType.cpuExec, 0x0000, 0xffff)
|
||||||
startupCallback = nil
|
startupCallback = nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue