Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # Load
- #==============================================================================
- #--------------------------------------------------------------------------
- if $TEST
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- dir = Dir["Scripts/*.rb"]
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- else
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- dir = Dir["Scripts/*.rgss2"]
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- end
- #--------------------------------------------------------------------------
- for script in dir
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- next if script.to_s.empty?
- begin
- if $TEST
- Crypt.encrypt(script, script.gsub(".rb", ".rgss2"))
- file = File.open(script, "r+")
- eval(file.read)
- file.close
- else
- temp = script.gsub(".rgss2", ".x")
- Crypt.decrypt(script, temp)
- file = File.open(temp, "r+")
- eval(file.read)
- file.close
- File.delete(temp)
- end
- rescue Exception => exc
- unless exc.message.include?("exit")
- unless exc.message.include?("1147")
- print(exc.message)
- end
- end
- end
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- end
- #--------------------------------------------------------------------------
- #==============================================================================
Add Comment
Please, Sign In to add comment