[Scummvm-git-logs] scummvm master -> 5613caf32245653e276dbc60824c86f330b6d235
bluegr
bluegr at gmail.com
Tue Jun 18 00:32:46 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5613caf322 SLUDGE: fix data file handling with custom encoding setting
Commit: 5613caf32245653e276dbc60824c86f330b6d235
https://github.com/scummvm/scummvm/commit/5613caf32245653e276dbc60824c86f330b6d235
Author: Sebastian Krzyszkowiak (dos at dosowisko.net)
Date: 2019-06-18T01:32:43+03:00
Commit Message:
SLUDGE: fix data file handling with custom encoding setting
The check was inverted - it failed when everything was alright and
succeded on error...
Changed paths:
engines/sludge/savedata.cpp
diff --git a/engines/sludge/savedata.cpp b/engines/sludge/savedata.cpp
index b103523..59d91f3 100644
--- a/engines/sludge/savedata.cpp
+++ b/engines/sludge/savedata.cpp
@@ -118,7 +118,7 @@ bool CustomSaveHelper::fileToStack(const Common::String &filename, StackHandler
if (_saveEncoding) {
checker = readStringEncoded(fp);
- if (checker == UTF8_CHECKER) {
+ if (checker != UTF8_CHECKER) {
delete fp;
return fatal(LOAD_ERROR "The current file encoding setting does not match the encoding setting used when this file was created:", filename);
}
More information about the Scummvm-git-logs
mailing list