mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
SLUDGE: fix data file handling with custom encoding setting
The check was inverted - it failed when everything was alright and succeded on error...
This commit is contained in:
parent
77db7fcb60
commit
5613caf322
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user