Advertisement
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'
- # Adds the working path to the command
- command = Dir.pwd+'/'+command
- # Command with test argument for test play reset
- if !$TEST
- spawn command, 'test'
- else
- spawn command
- end
- # Exits this thread
- exit
- end
- $run_once_f12 = true
- # Run default rgss_main
- block.call
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement