Move preprocessor directives at column 0, cleanup some risky ifdef usage.

This commit is contained in:
riccardom 2009-09-19 16:44:20 +00:00
parent 1d9c7c6bc4
commit 8b7a7f9b50
1 changed files with 20 additions and 17 deletions

View File

@ -69,7 +69,6 @@ public:
SetRomName(parts[parts.size()-1].c_str());
LoadModulePath();
#ifndef WIN32
ReadPathSettings();
#endif
@ -106,11 +105,15 @@ public:
{
#ifdef WIN32
GetPrivateProfileString(SECTION, key, key, pathToRead, MAX_PATH, IniName);
if(strcmp(pathToRead, key) == 0)
#endif
if(strcmp(pathToRead, key) == 0) {
//since the variables are all intialized in this file they all use MAX_PATH
GetDefaultPath(pathToRead, key, MAX_PATH);
}
#else
//since the variables are all intialized in this file they all use MAX_PATH
GetDefaultPath(pathToRead, key, MAX_PATH);
#endif
}
void ReadPathSettings()
{