From cde1c5bd60dc738ce30b2ace5cdbadb264db2a34 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Sun, 30 Jan 2011 17:04:12 +0000 Subject: 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 --- Source/Core/Common/Src/IniFile.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/Src/IniFile.cpp') 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 @@ -36,12 +36,11 @@ static void ParseLine(const std::string& line, std::string* keyOut, std::string* int FirstCommentChar = -1; // 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) -- cgit v1.2.3