mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
revert part of r3896
bad decision to move all ini paths to common git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3897 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -32,7 +32,7 @@ void CConfig::Load()
|
||||
{
|
||||
// first load defaults
|
||||
IniFile file;
|
||||
file.Load(DSPHLE_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "DSP.ini");
|
||||
file.Get("Config", "EnableHLEAudio", &m_EnableHLEAudio, true); // Sound Settings
|
||||
file.Get("Config", "EnableRE0AudioFix", &m_EnableRE0Fix, false); // RE0 Hack
|
||||
ac_Config.Load(file);
|
||||
@ -41,12 +41,12 @@ void CConfig::Load()
|
||||
void CConfig::Save()
|
||||
{
|
||||
IniFile file;
|
||||
file.Load(DSPHLE_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "DSP.ini");
|
||||
file.Set("Config", "EnableHLEAudio", m_EnableHLEAudio); // Sound Settings
|
||||
file.Set("Config", "EnableRE0AudioFix", m_EnableRE0Fix); // RE0 Hack
|
||||
ac_Config.Set(file);
|
||||
|
||||
file.Save(DSPHLE_CONFIG_FILE);
|
||||
file.Save(FULL_CONFIG_DIR "DSP.ini");
|
||||
}
|
||||
|
||||
void CConfig::GameIniLoad() {
|
||||
|
@ -20,6 +20,8 @@
|
||||
#include "Config.h"
|
||||
#include "AudioCommon.h"
|
||||
|
||||
#define LLE_CONFIG_FILE "DSPLLE.ini"
|
||||
|
||||
CConfig g_Config;
|
||||
|
||||
CConfig::CConfig()
|
||||
@ -31,15 +33,15 @@ void CConfig::Load()
|
||||
{
|
||||
// first load defaults
|
||||
IniFile file;
|
||||
file.Load(DSPLLE_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR LLE_CONFIG_FILE);
|
||||
ac_Config.Load(file);
|
||||
}
|
||||
|
||||
void CConfig::Save()
|
||||
{
|
||||
IniFile file;
|
||||
file.Load(DSPLLE_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR LLE_CONFIG_FILE);
|
||||
ac_Config.Set(file);
|
||||
|
||||
file.Save(DSPLLE_CONFIG_FILE);
|
||||
file.Save(FULL_CONFIG_DIR LLE_CONFIG_FILE);
|
||||
}
|
||||
|
@ -911,7 +911,7 @@ void LoadConfig()
|
||||
};
|
||||
#endif
|
||||
IniFile file;
|
||||
file.Load(PSIMPLE_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "pad.ini");
|
||||
|
||||
for(int i = 0; i < 4; i++)
|
||||
{
|
||||
@ -946,7 +946,7 @@ void LoadConfig()
|
||||
void SaveConfig()
|
||||
{
|
||||
IniFile file;
|
||||
file.Load(PSIMPLE_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "pad.ini");
|
||||
|
||||
for(int i = 0; i < 4; i++)
|
||||
{
|
||||
@ -969,5 +969,5 @@ void SaveConfig()
|
||||
file.Set(SectionName, controlNames[x], pad[i].keyForControl[x]);
|
||||
}
|
||||
}
|
||||
file.Save(PSIMPLE_CONFIG_FILE);
|
||||
file.Save(FULL_CONFIG_DIR "pad.ini");
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ Config::Config()
|
||||
void Config::Load()
|
||||
{
|
||||
IniFile iniFile;
|
||||
iniFile.Load(DX9_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "gfx_dx9.ini");
|
||||
iniFile.Get("Hardware", "Adapter", &iAdapter, 0);
|
||||
iniFile.Get("Hardware", "WindowedRes", &iWindowedRes, 0);
|
||||
iniFile.Get("Hardware", "FullscreenRes", &iFSResolution, 0);
|
||||
@ -57,7 +57,7 @@ void Config::Load()
|
||||
void Config::Save()
|
||||
{
|
||||
IniFile iniFile;
|
||||
iniFile.Load(DX9_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "gfx_dx9.ini");
|
||||
iniFile.Set("Hardware", "Adapter", iAdapter);
|
||||
iniFile.Set("Hardware", "WindowedRes", iWindowedRes);
|
||||
iniFile.Set("Hardware", "FullscreenRes", iFSResolution);
|
||||
@ -79,5 +79,5 @@ void Config::Save()
|
||||
|
||||
iniFile.Set("Enhancements", "ForceFiltering", bForceFiltering);
|
||||
iniFile.Set("Enhancements", "ForceMaxAniso", bForceMaxAniso);
|
||||
iniFile.Save(DX9_CONFIG_FILE);
|
||||
iniFile.Save(FULL_CONFIG_DIR "gfx_dx9.ini");
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ void Config::Load()
|
||||
{
|
||||
std::string temp;
|
||||
IniFile iniFile;
|
||||
iniFile.Load(OPENGL_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "gfx_opengl.ini");
|
||||
|
||||
// get resolution
|
||||
iniFile.Get("Hardware", "WindowedRes", &temp, "640x480");
|
||||
@ -129,7 +129,7 @@ void Config::GameIniLoad()
|
||||
void Config::Save()
|
||||
{
|
||||
IniFile iniFile;
|
||||
iniFile.Load(OPENGL_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "gfx_opengl.ini");
|
||||
iniFile.Set("Hardware", "WindowedRes", iInternalRes);
|
||||
iniFile.Set("Hardware", "FullscreenRes", iFSResolution);
|
||||
iniFile.Set("Hardware", "Fullscreen", bFullscreen);
|
||||
@ -175,5 +175,5 @@ void Config::Save()
|
||||
iniFile.Set("Hacks", "EFBToTextureEnable", bCopyEFBToRAM);
|
||||
iniFile.Set("Hacks", "ProjectionHack", iPhackvalue);
|
||||
|
||||
iniFile.Save(OPENGL_CONFIG_FILE);
|
||||
iniFile.Save(FULL_CONFIG_DIR "gfx_opengl.ini");
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ void Config::Load(bool ChangePad)
|
||||
{
|
||||
std::string temp;
|
||||
IniFile iniFile;
|
||||
iniFile.Load(WM_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");
|
||||
|
||||
// General
|
||||
iniFile.Get("Settings", "SidewaysDPad", &bSidewaysDPad, false);
|
||||
@ -296,7 +296,7 @@ void Config::Load(bool ChangePad)
|
||||
iniFile.Get(joySectionName.c_str(), "PitchInvert", &WiiMoteEmu::PadMapping[i].bPitchInvert, false);
|
||||
}
|
||||
// Load the IR cursor settings if it's avaliable for the GameId, if not load the default settings
|
||||
iniFile.Load(WM_IR_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "IR Pointer.ini");
|
||||
char TmpSection[32];
|
||||
sprintf(TmpSection, "%s", g_ISOId ? Hex2Ascii(g_ISOId).c_str() : "Default");
|
||||
iniFile.Get(TmpSection, "IRLeft", &iIRLeft, LEFT);
|
||||
@ -307,7 +307,7 @@ void Config::Load(bool ChangePad)
|
||||
// Load a few screen settings to. If these are added to the DirectX plugin it's probably
|
||||
// better to place them in the main Dolphin.ini file
|
||||
|
||||
iniFile.Load(OPENGL_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "gfx_opengl.ini");
|
||||
iniFile.Get("Settings", "KeepAR_4_3", &bKeepAR43, false);
|
||||
iniFile.Get("Settings", "KeepAR_16_9", &bKeepAR169, false);
|
||||
iniFile.Get("Settings", "Crop", &bCrop, false);
|
||||
@ -318,7 +318,7 @@ void Config::Load(bool ChangePad)
|
||||
void Config::Save(int Slot)
|
||||
{
|
||||
IniFile iniFile;
|
||||
iniFile.Load(WM_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");
|
||||
iniFile.Set("Settings", "SidewaysDPad", bSidewaysDPad);
|
||||
iniFile.Set("Settings", "ExtensionConnected", iExtensionConnected);
|
||||
|
||||
@ -395,17 +395,17 @@ void Config::Save(int Slot)
|
||||
iniFile.Set(joySectionName.c_str(), "PitchInvert", WiiMoteEmu::PadMapping[i].bPitchInvert);
|
||||
}
|
||||
|
||||
iniFile.Save(WM_CONFIG_FILE);
|
||||
iniFile.Save(FULL_CONFIG_DIR "Wiimote.ini");
|
||||
|
||||
// Save the IR cursor settings if it's avaliable for the GameId, if not save the default settings
|
||||
iniFile.Load(WM_IR_CONFIG_FILE);
|
||||
iniFile.Load(FULL_CONFIG_DIR "IR Pointer.ini");
|
||||
char TmpSection[32];
|
||||
sprintf(TmpSection, "%s", g_ISOId ? Hex2Ascii(g_ISOId).c_str() : "Default");
|
||||
iniFile.Set(TmpSection, "IRLeft", iIRLeft);
|
||||
iniFile.Set(TmpSection, "IRTop", iIRTop);
|
||||
iniFile.Set(TmpSection, "IRWidth", iIRWidth);
|
||||
iniFile.Set(TmpSection, "IRHeight", iIRHeight);
|
||||
iniFile.Save(WM_IR_CONFIG_FILE);
|
||||
iniFile.Save(FULL_CONFIG_DIR "IR Pointer.ini");
|
||||
|
||||
//INFO_LOG(CONSOLE, "Save()\n");
|
||||
}
|
@ -32,7 +32,7 @@ void WiimoteRecordingConfigDialog::LoadFile()
|
||||
INFO_LOG(CONSOLE, "LoadFile()\n");
|
||||
|
||||
IniFile file;
|
||||
file.Load(WM_MOVEMENT_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "WiimoteMovement.ini");
|
||||
|
||||
for (int i = 1; i < (RECORDING_ROWS + 1); i++)
|
||||
{
|
||||
@ -75,7 +75,7 @@ void WiimoteRecordingConfigDialog::SaveFile()
|
||||
INFO_LOG(CONSOLE, "SaveFile\n");
|
||||
|
||||
IniFile file;
|
||||
file.Load(WM_MOVEMENT_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "WiimoteMovement.ini");
|
||||
|
||||
for(int i = 1; i < (RECORDING_ROWS + 1); i++)
|
||||
{
|
||||
@ -107,7 +107,7 @@ void WiimoteRecordingConfigDialog::SaveFile()
|
||||
file.Set(SaveName.c_str(), "PlaybackSpeed", m_RecordPlayBackSpeed[i]->GetSelection());
|
||||
}
|
||||
|
||||
file.Save(WM_MOVEMENT_CONFIG_FILE);
|
||||
file.Save(FULL_CONFIG_DIR "WiimoteMovement.ini");
|
||||
INFO_LOG(CONSOLE, "SaveFile()\n");
|
||||
}
|
||||
|
||||
@ -338,7 +338,7 @@ void WiimoteRecordingConfigDialog::CreateGUIControlsRecording()
|
||||
void WiimoteRecordingConfigDialog::ConvertToString()
|
||||
{
|
||||
IniFile file;
|
||||
file.Load(WM_MOVEMENT_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "WiimoteMovement.ini");
|
||||
std::string TmpStr = "", TmpIR = "", TmpTime = "";
|
||||
|
||||
for (int i = 0; i < (int)m_vRecording.size(); i++)
|
||||
@ -402,7 +402,7 @@ void WiimoteRecordingConfigDialog::ConvertToString()
|
||||
m_RecordPlayBackSpeed[m_iRecordTo]->SetSelection(3);
|
||||
}
|
||||
|
||||
file.Save(WM_MOVEMENT_CONFIG_FILE);
|
||||
file.Save(FULL_CONFIG_DIR "WiimoteMovement.ini");
|
||||
|
||||
INFO_LOG(CONSOLE, "Save recording to WiimoteMovement.ini\n");
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ void LoadRecordedMovements()
|
||||
INFO_LOG(WII_IPC_WIIMOTE, "LoadRecordedMovements()\n");
|
||||
|
||||
IniFile file;
|
||||
file.Load(WM_MOVEMENT_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "WiimoteMovement.ini");
|
||||
|
||||
for(int i = 0; i < RECORDING_ROWS; i++)
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ void Config::Save(int Slot)
|
||||
|
||||
// Load ini file
|
||||
IniFile file;
|
||||
file.Load(NJOY_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "nJoy.ini");
|
||||
|
||||
// ==================================================================
|
||||
// Global settings
|
||||
@ -189,7 +189,7 @@ void Config::Save(int Slot)
|
||||
|
||||
INFO_LOG(CONSOLE, "%i: Save: %i\n", 0, PadMapping[0].halfpress);
|
||||
|
||||
file.Save(NJOY_CONFIG_FILE);
|
||||
file.Save(FULL_CONFIG_DIR "nJoy.ini");
|
||||
}
|
||||
|
||||
// Load settings from file
|
||||
@ -201,7 +201,7 @@ void Config::Load(bool ChangePad, bool ChangeSaveByID)
|
||||
|
||||
// Load file
|
||||
IniFile file;
|
||||
file.Load(NJOY_CONFIG_FILE);
|
||||
file.Load(FULL_CONFIG_DIR "nJoy.ini");
|
||||
bool Tmp; // Tmp storage
|
||||
|
||||
// ==================================================================
|
||||
|
Reference in New Issue
Block a user