moved Gameini dir on linux to User/GameConfig

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1134 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-11-11 22:12:36 +00:00
parent 5e2142a901
commit 47dfc9ad38
8 changed files with 8 additions and 1029 deletions

View File

@ -36,9 +36,13 @@
#define DEFAULT_WIIMOTE_PLUGIN PLUGIN_PREFIX "Plugin_Wiimote" PLUGIN_SUFFIX
// shorts
#ifndef _WIN32
#ifdef _WIN32
#define FULL_DATA_DIR ""
#define FULL_GAMECONFIG_DIR "GameIni/"
#define CONFIG_FILE DOLPHIN_CONFIG
#else
#define CONFIG_FILE DATA_DIR DIR_SEP USERDATA_DIR DIR_SEP CONFIG_DIR DIR_SEP DOLPHIN_CONFIG
#define FULL_DATA_DIR DATA_DIR DIR_SEP USERDATA_DIR DIR_SEP
#define FULL_GAMECONFIG_DIR FULL_DATA_DIR GAMECONFIG_DIR
#define CONFIG_FILE FULL_DATA_DIR CONFIG_DIR DIR_SEP DOLPHIN_CONFIG
#endif
#endif // PATHS_H

View File

@ -74,7 +74,7 @@ void LoadPatchSection(const char *section, std::vector<Patch> &patches, IniFile
void PatchEngine_LoadPatches(const char *gameID)
{
IniFile ini;
std::string filename = std::string("GameIni/") + gameID + ".ini";
std::string filename = std::string(FULL_GAMECONFIG_DIR) + gameID + ".ini";
if (ini.Load(filename.c_str())) {
LoadPatchSection("OnLoad", onLoad, ini);
LoadPatchSection("OnFrame", onFrame, ini);
@ -119,4 +119,4 @@ void PatchEngine_ApplyFramePatches()
void PatchEngine_ApplyARPatches()
{
ActionReplayRunAllActive();
}
}