Changing encounter_version now updates the encounter tables immediately, title screen now plays properly if there are no splashes, compiling is now forced if any dat files are missing, other tweaks

This commit is contained in:
Maruno17
2021-12-12 23:10:01 +00:00
parent 2444b70ef6
commit 3da8b563da
5 changed files with 30 additions and 13 deletions

View File

@@ -813,13 +813,17 @@ module Compiler
# Check data files and PBS files, and recompile if any PBS file was edited
# more recently than the data files were last created
dataFiles.each do |filename|
next if !safeExists?("Data/" + filename)
begin
File.open("Data/#{filename}") { |file|
latestDataTime = [latestDataTime, file.mtime.to_i].max
}
rescue SystemCallError
if safeExists?("Data/" + filename)
begin
File.open("Data/#{filename}") { |file|
latestDataTime = [latestDataTime, file.mtime.to_i].max
}
rescue SystemCallError
mustCompile = true
end
else
mustCompile = true
break
end
end
textFiles.each do |filename|