Cleaned up evolution method definitions, rewrote the "Fill Bag" Debug feature to make it much faster, removed all instances of changing the game window's title

This commit is contained in:
Maruno17
2021-07-22 22:46:43 +01:00
parent d21d3cb1fd
commit cb0220b751
15 changed files with 89 additions and 98 deletions

View File

@@ -123,7 +123,6 @@ module Compiler
end
lineno += 1
Graphics.update if lineno%1000==0
pbSetWindowText(_INTL("Processing {1} line {2}",FileLineData.file,lineno)) if lineno%200==0
}
yield lastsection,sectionname if havesection
end
@@ -726,7 +725,7 @@ module Compiler
compile_metadata # Depends on TrainerType
yield(_INTL("Compiling animations"))
compile_animations
yield(_INTL("Converting events"))
yield("")
compile_trainer_events(mustCompile)
yield(_INTL("Saving messages"))
pbSetTextMessages
@@ -736,7 +735,6 @@ module Compiler
echoln ""
echoln _INTL("*** Finished full compile ***")
echoln ""
pbSetWindowText(nil)
end
def main
@@ -828,7 +826,7 @@ module Compiler
end
end
# Recompile all data
compile_all(mustCompile) { |msg| pbSetWindowText(msg); echoln(msg) }
compile_all(mustCompile) { |msg| echoln msg }
rescue Exception
e = $!
raise e if "#{e.class}"=="Reset" || e.is_a?(Reset) || e.is_a?(SystemExit)