Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --2014 Jul 24 by Rena
- --makes Super Mario Bros run crazyfast during load screens,
- --death animations, etc (any time you're not controlling Mario).
- local oldmode = 0
- while true do
- local mode = memory.readbyte(0x000E)
- if mode ~= oldmode then
- --changing the speed frequently breaks things for some reason,
- --so only change it if the mode changed
- if mode == 8 then emu.speedmode("normal")
- else emu.speedmode("maximum")
- end
- oldmode = mode
- end
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement