return path;
}
- globalErrorStream() << "\%USERNAME\% not found.\n";
+ globalErrorStream() << "%USERNAME% not found.\n";
return "";
#endif // !GDEF_OS_WINDOWS
return path;
}
- globalErrorStream() << "\%HOMEPATH\% not found, guessing…\n";
+ globalErrorStream() << "%HOMEPATH% not found, guessing…\n";
std::string path1 = getUserProfilePath();
return path1;
}
- globalErrorStream() << "\%HOMEPATH\% not found.\n";
+ globalErrorStream() << "%HOMEPATH% not found.\n";
return "";
#endif // !GDEF_OS_WINDOWS
return path;
}
- globalErrorStream() << "\%SYSTEMDRIVE\% not found, guessing…\n";
+ globalErrorStream() << "%SYSTEMDRIVE% not found, guessing…\n";
return "C:";
}
return path;
}
- globalErrorStream() << "\%USERPROFILE\% not found, guessing…\n";
+ globalErrorStream() << "%USERPROFILE% not found, guessing…\n";
std::string path1 = getSystemDrive();
std::string path2 = getUserName();
return path1 + "\\Users\\" + path2;
}
- globalErrorStream() << "\%USERPROFILE\% not found.\n";
+ globalErrorStream() << "%USERPROFILE% not found.\n";
return "";
}
return path;
}
- globalErrorStream() << "\%ProgramFiles\% not found, guessing…\n";
+ globalErrorStream() << "%ProgramFiles% not found, guessing…\n";
std::string path1 = getSystemDrive();
return path1 + "\\Program Files";
return path;
}
- globalErrorStream() << "\%ProgramFiles(x86)\% not found, guessing…\n";
+ globalErrorStream() << "%ProgramFiles(x86)% not found, guessing…\n";
return getProgramFilesPath();
}
return path;
}
- globalErrorStream() << "\%ProgramW6432\% not found, guessing…\n";
+ globalErrorStream() << "%ProgramW6432% not found, guessing…\n";
return getProgramFilesPath();
}
return path;
}
- globalErrorStream() << "\%APPDATA\% not found, guessing…\n";
+ globalErrorStream() << "%APPDATA% not found, guessing…\n";
std::string path1 = getUserProfilePath();
return path1 + "\\AppData\\Roaming";
}
- globalErrorStream() << "\%APPDATA\% not found.\n";
+ globalErrorStream() << "%APPDATA% not found.\n";
return std::string( "" );
}
static const pathTransformer_t pathTransformers[] =
{
#if GDEF_OS_WINDOWS
- { "\%HOMEPATH\%", getHomePath },
- { "\%USERPROFILE\%", getUserProfilePath },
- { "\%ProgramFiles\%", getProgramFilesPath },
- { "\%ProgramFiles(x86)\%", getProgramFilesX86Path },
- { "\%ProgramW6432\%", getProgramW6432Path },
- { "\%APPDATA\%", getAppDataPath },
+ { "%HOMEPATH%", getHomePath },
+ { "%USERPROFILE%", getUserProfilePath },
+ { "%ProgramFiles%", getProgramFilesPath },
+ { "%ProgramFiles(x86)%", getProgramFilesX86Path },
+ { "%ProgramW6432%", getProgramW6432Path },
+ { "%APPDATA%", getAppDataPath },
{ "[CSIDL_MYDOCUMENTS]", getMyDocumentsPath },
#endif // GDEF_OS_WINDOWS