mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SMZ3: fix loading TextScript on systems that don't default to something utf-8 compatible (#384)
This commit is contained in:
@@ -17,7 +17,7 @@ class Texts:
|
||||
|
||||
@staticmethod
|
||||
def ParseTextScript(resource: str):
|
||||
with open(resource, 'r') as file:
|
||||
with open(resource, 'r', encoding="utf-8-sig") as file:
|
||||
return [text.rstrip('\n') for text in file.read().replace("\r", "").split("---\n") if text]
|
||||
|
||||
scripts: Any = ParseYamlScripts.__func__(text_folder + "/Scripts/General.yaml")
|
||||
|
||||
Reference in New Issue
Block a user