1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

revert previous commit, handle \ in lang names

This commit is contained in:
A_D 2021-07-03 17:18:47 +02:00
parent edbf1263a9
commit dec2e07ce0
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4
2 changed files with 6 additions and 1 deletions

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

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