diff options
| author | Glenn Rice <glennricster@gmail.com> | 2011-01-30 17:04:12 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2011-01-30 17:04:12 +0000 |
| commit | cde1c5bd60dc738ce30b2ace5cdbadb264db2a34 (patch) | |
| tree | 92461c5e3c7ad1becedda8852e293c845e5d7640 /Source/Core/Common/Src/IniFile.cpp | |
| parent | db1765c4256fc7990347870e0862bc764f7a7398 (diff) | |
Remove the PIC linker flag for DSP on linux.
Fix some debugger issues. Still need to get sound window working, but the invalid id panic alert is fixed.
Also, a ";" as a comment in an ini file is now only allowed at the beginning of a line. The debugger has settings strings with semicolons in them. That completely broke the debugger.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6989 8ced0084-cf51-0410-be5f-012b33b47a6e
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) |
