mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
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:
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user