[Scummvm-git-logs] scummvm master -> 75e96d70702208f61ac93f74f265295f85342c36

sev- noreply at scummvm.org
Mon Dec 11 14:07:57 UTC 2023


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:
75e96d7070 COMMON: Fix strictParser interpretation to follow the intent


Commit: 75e96d70702208f61ac93f74f265295f85342c36
    https://github.com/scummvm/scummvm/commit/75e96d70702208f61ac93f74f265295f85342c36
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-12-11T15:05:45+01:00

Commit Message:
COMMON: Fix strictParser interpretation to follow the intent

Changed paths:
    common/formats/ini-file.cpp


diff --git a/common/formats/ini-file.cpp b/common/formats/ini-file.cpp
index 52204c1e435..eb8e54658f7 100644
--- a/common/formats/ini-file.cpp
+++ b/common/formats/ini-file.cpp
@@ -116,7 +116,7 @@ bool INIFile::loadFromStream(SeekableReadStream &stream, bool strictParser) {
 
 		if (line.size() == 0) {
 			// Do nothing
-		} else if (strictParser && !Common::isPrint(line[0])) {
+		} else if (!strictParser && !Common::isPrint(line[0])) {
 			// Non-ASCII character at the beginning of the line, count lines
 			nonAsciilineCount++;
 		} else if (line[0] == '#' || line[0] == ';' || line.hasPrefix("//")) {




More information about the Scummvm-git-logs mailing list