diff options
Diffstat (limited to 'Source/Core/Common/Src/IniFile.cpp')
| -rw-r--r-- | Source/Core/Common/Src/IniFile.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/IniFile.cpp b/Source/Core/Common/Src/IniFile.cpp index caccb9636f..c81c060f1d 100644 --- a/Source/Core/Common/Src/IniFile.cpp +++ b/Source/Core/Common/Src/IniFile.cpp @@ -38,10 +38,9 @@ static void ParseLine(const std::string& line, std::string* keyOut, std::string* // Comments if (FirstCommentChar < 0) FirstCommentChar = - (int)line.find(";", FirstEquals > 0 ? FirstEquals : 0); - if (FirstCommentChar < 0) - FirstCommentChar = (int)line.find("#", FirstEquals > 0 ? FirstEquals : 0); + if (FirstCommentChar < 0 && line[0] == ';') + FirstCommentChar = 0; // Allow preservation of spacing before comment if (FirstCommentChar > 0) |
