Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- mGBA on Bizhawk is unstable restarting/rebooting core script v1.0 --
- -- to use: this script will reboot the current emu core and hang frame advance. please stop and restart the script infrequently every few seconds and eventually it'll crash. --
- client.reboot_core()
- print("Restart me a few times to crash.")
- function drawguitext()
- gui.text(1,10,string.format("Test %i",1))
- end
- function checkEmu()
- check = console.getavailabletools --this returns an error if not on Bizhawk
- end
- if pcall(checkEmu) then
- print("Loaded script on Bizhawk, setting memory domain to IWRAM")
- memory.usememorydomain("IWRAM");
- else
- print("VBA-RR or other emulator detected - will not switch memory domain.") -- dont do anything else, only bizhawk needs the memory domain set
- end
- repeat
- drawguitext()
- emu.frameadvance()
- until false
- gui.register(drawguitext)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement