mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-13 16:04:58 +00:00
game data
This commit is contained in:
53
Data/Scripts_backup/999_Main/999_Main.rb
Normal file
53
Data/Scripts_backup/999_Main/999_Main.rb
Normal file
@@ -0,0 +1,53 @@
|
||||
class Scene_DebugIntro
|
||||
def main
|
||||
Graphics.transition(0)
|
||||
sscene = PokemonLoad_Scene.new
|
||||
sscreen = PokemonLoadScreen.new(sscene)
|
||||
sscreen.pbStartLoadScreen
|
||||
Graphics.freeze
|
||||
end
|
||||
end
|
||||
|
||||
def pbCallTitle
|
||||
return Scene_DebugIntro.new if $DEBUG
|
||||
return Scene_Intro.new
|
||||
end
|
||||
|
||||
def mainFunction
|
||||
if $DEBUG
|
||||
pbCriticalCode { mainFunctionDebug }
|
||||
else
|
||||
mainFunctionDebug
|
||||
end
|
||||
return 1
|
||||
end
|
||||
|
||||
def mainFunctionDebug
|
||||
begin
|
||||
MessageTypes.loadMessageFile("Data/messages.dat") if safeExists?("Data/messages.dat")
|
||||
PluginManager.runPlugins
|
||||
Compiler.main
|
||||
Game.initialize
|
||||
Game.set_up_system
|
||||
Graphics.update
|
||||
Graphics.freeze
|
||||
$scene = pbCallTitle
|
||||
$scene.main until $scene.nil?
|
||||
Graphics.transition(20)
|
||||
#rescue Hangup
|
||||
#pbPrintException($!) if !$DEBUG
|
||||
#pbEmergencySave
|
||||
#raise
|
||||
end
|
||||
end
|
||||
|
||||
loop do
|
||||
retval = mainFunction
|
||||
if retval == 0 # failed
|
||||
loop do
|
||||
Graphics.update
|
||||
end
|
||||
elsif retval == 1 # ended successfully
|
||||
break
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user