Skip to content

Commit

Permalink
Add * to the characters leading a verbatim line (used in Gecko codes …
Browse files Browse the repository at this point in the history
…comments)
  • Loading branch information
delroth committed Sep 17, 2013
1 parent 47ce3dd commit e34d8ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Source/Core/Common/Src/IniFile.cpp
Expand Up @@ -371,11 +371,11 @@ bool IniFile::Load(const char* filename, bool keep_current_data)
std::string key, value;
ParseLine(line, &key, &value);

// Lines starting with '$' or '+' are kept verbatim. Kind
// of a hack, but the support for raw lines inside an INI
// is a hack anyway.
// Lines starting with '$', '*' or '+' are kept verbatim.
// Kind of a hack, but the support for raw lines inside an
// INI is a hack anyway.
if ((key == "" && value == "")
|| (line.size() >= 1 && (line[0] == '$' || line[0] == '+')))
|| (line.size() >= 1 && (line[0] == '$' || line[0] == '+' || line[0] == '*')))
current_section->lines.push_back(line.c_str());
else
current_section->Set(key, value.c_str());
Expand Down
1 change: 0 additions & 1 deletion Source/Core/DolphinWX/Src/ISOProperties.cpp
Expand Up @@ -125,7 +125,6 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
GameIniFileDefault = File::GetSysDirectory() + GAMESETTINGS_DIR DIR_SEP + _iniFilename + ".ini";
GameIniFileLocal = File::GetUserPath(D_GAMESETTINGS_IDX) + _iniFilename + ".ini";

printf("Loading\n");
GameIniDefault.Load(GameIniFileDefault);
GameIniLocal.Load(GameIniFileLocal);

Expand Down

0 comments on commit e34d8ae

Please sign in to comment.