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:
Maruno17
2023-05-20 22:10:11 +01:00
parent 276c052822
commit 167155c67d
17 changed files with 130 additions and 158 deletions

View File

@@ -59,7 +59,7 @@ def pbEditMysteryGift(type, item, id = 0, giftname = "")
if id == 0
master = []
idlist = []
if safeExists?("MysteryGiftMaster.txt")
if FileTest.exist?("MysteryGiftMaster.txt")
master = IO.read("MysteryGiftMaster.txt")
master = pbMysteryGiftDecrypt(master)
end
@@ -101,7 +101,7 @@ def pbCreateMysteryGift(type, item)
gift = pbEditMysteryGift(type, item)
if gift
begin
if safeExists?("MysteryGiftMaster.txt")
if FileTest.exist?("MysteryGiftMaster.txt")
master = IO.read("MysteryGiftMaster.txt")
master = pbMysteryGiftDecrypt(master)
master.push(gift)
@@ -124,7 +124,7 @@ end
# file to be uploaded.
#===============================================================================
def pbManageMysteryGifts
if !safeExists?("MysteryGiftMaster.txt")
if !FileTest.exist?("MysteryGiftMaster.txt")
pbMessage(_INTL("There are no Mystery Gifts defined."))
return
end