revert previous commit, handle \ in lang names

This commit is contained in:
A_D committed 2021-07-03 17:23:30 +02:00
1 parent edbf1263a9
commit dec2e07ce0
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -571,6 +571,11 @@ edmc_suit_symbol_localised = {
},
}
# 4.0.0.600 Update 5 introduced duplicates of `fileheader` keys into `LoadGame`,
# but the GameLanguage in the latter has doubled up the `\`, so cater for either.
for lang, new_lang in map(lambda k: (k, k.replace('\\', r'\\')), list(edmc_suit_symbol_localised.keys())):
edmc_suit_symbol_localised[new_lang] = edmc_suit_symbol_localised[lang]
# Local webserver for debugging. See implementation in debug_webserver.py
DEBUG_WEBSERVER_HOST = '127.0.0.1'
DEBUG_WEBSERVER_PORT = 9090
+1 -1
View File
@@ -513,7 +513,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
elif event_type == 'loadgame':
# Odyssey Release Update 5 -- This contains data that doesn't match the format used in FileHeader above
# self.populate_version_info(entry, suppress=True)
self.populate_version_info(entry, suppress=True)
# alpha4
# Odyssey: bool