Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias f12_hard_reset_rgss_main rgss_main
- def rgss_main(*args, &block)
- f12_hard_reset_rgss_main(*args) do
- if $run_once_f12
- # Name of the game executable (game.exe, game.ini, game.rgssad)
- command = 'Game'
- # Add command line argument so the debug capabilities are kept in Test play
- command += '.exe test' if $TEST
- # Opens the game executable in a new thread
- Thread.new{system command}
- sleep(0.1)
- # Exits this thread
- exit
- end
- $run_once_f12 = true
- # Run default rgss_main
- block.call
- end
- end
Add Comment
Please, Sign In to add comment