diff options
author | antoniou79 | 2019-01-03 22:18:13 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-01-06 17:12:02 +0100 |
commit | 695e76e815de983b0f0a5cac291a8ad7762228a9 (patch) | |
tree | f60a4b61ed6bb1cdb35b925e4fdb0a798f7f35ef /devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py | |
parent | cb8ee2dd6d356cd4800ff542f2b3cfe9656d1d38 (diff) | |
download | scummvm-rg350-695e76e815de983b0f0a5cac291a8ad7762228a9.tar.gz scummvm-rg350-695e76e815de983b0f0a5cac291a8ad7762228a9.tar.bz2 scummvm-rg350-695e76e815de983b0f0a5cac291a8ad7762228a9.zip |
DEVTOOLS: Fixed encoding of exported text from game
Blade Runner uses IBM437 encoding for its TRx resources
This covers the ENG, FRA, DEU, ITA and ESP versions.
The ERRORMSG.TRx use different encoding (Latin-1) but with a few bugs (a few character encoded with IBM437)
More work would probably be required for the RUS version.
Diffstat (limited to 'devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py')
-rw-r--r-- | devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py b/devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py index 096b8c3bda..b585b7553a 100644 --- a/devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py +++ b/devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py @@ -990,6 +990,11 @@ class grabberFromPNG: if filename.upper() == mixFileName: inputMIXFilesFound.append(mixFileName) break + + if len(inputMIXFilesFound) == 0: + print "[Error] No supported game archive resource files (MIX) were found in the specified input path (-ip switch)" + sys.exit(1) + for tmpMIXfileName in inputMIXFilesFound: print "[Info] Found MIX file: %s" % ('"' + tmpMIXfileName + '"') errorFound = False |