Move preprocessor directives at column 0, cleanup some risky ifdef usage.
This commit is contained in:
parent
1d9c7c6bc4
commit
8b7a7f9b50
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue