mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Deprecated methods intended to work around filenames with accents, fixed crash when the Compiler wants to rewrite PBS files if they don't exist
This commit is contained in:
@@ -596,10 +596,10 @@ end
|
||||
|
||||
def pbImportAllAnimations
|
||||
animationFolders = []
|
||||
if safeIsDirectory?("Animations")
|
||||
if FileTest.directory?("Animations")
|
||||
Dir.foreach("Animations") do |fb|
|
||||
f = "Animations/" + fb
|
||||
animationFolders.push(f) if safeIsDirectory?(f) && fb != "." && fb != ".."
|
||||
animationFolders.push(f) if FileTest.directory?(f) && fb != "." && fb != ".."
|
||||
end
|
||||
end
|
||||
if animationFolders.length == 0
|
||||
@@ -639,14 +639,14 @@ def pbImportAllAnimations
|
||||
textdata.id = -1 # This is not an RPG Maker XP animation
|
||||
BattleAnimationEditor.pbConvertAnimToNewFormat(textdata)
|
||||
if textdata.graphic && textdata.graphic != "" &&
|
||||
!safeExists?(folder + "/" + textdata.graphic) &&
|
||||
!FileTest.exist?(folder + "/" + textdata.graphic) &&
|
||||
!FileTest.image_exist?("Graphics/Animations/" + textdata.graphic)
|
||||
textdata.graphic = ""
|
||||
missingFiles.push(textdata.graphic)
|
||||
end
|
||||
textdata.timing.each do |timing|
|
||||
next if !timing.name || timing.name == "" ||
|
||||
safeExists?(folder + "/" + timing.name) ||
|
||||
FileTest.exist?(folder + "/" + timing.name) ||
|
||||
FileTest.audio_exist?("Audio/SE/Anim/" + timing.name)
|
||||
timing.name = ""
|
||||
missingFiles.push(timing.name)
|
||||
|
||||
Reference in New Issue
Block a user