mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01:00
Remove perf_dir Dolphin WX option.
Move the option for the directory to the Dolphin.ini This way more than DolphinWX can take advantage of it.
This commit is contained in:
parent
c5a7243eb2
commit
d9037d6c4a
@ -264,6 +264,7 @@ void SConfig::SaveCoreSettings(IniFile& ini)
|
|||||||
core->Set("GPUDeterminismMode", m_strGPUDeterminismMode);
|
core->Set("GPUDeterminismMode", m_strGPUDeterminismMode);
|
||||||
core->Set("GameCubeAdapter", m_GameCubeAdapter);
|
core->Set("GameCubeAdapter", m_GameCubeAdapter);
|
||||||
core->Set("AdapterRumble", m_AdapterRumble);
|
core->Set("AdapterRumble", m_AdapterRumble);
|
||||||
|
core->Set("PerfMapDir", m_perfDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SConfig::SaveMovieSettings(IniFile& ini)
|
void SConfig::SaveMovieSettings(IniFile& ini)
|
||||||
@ -522,6 +523,7 @@ void SConfig::LoadCoreSettings(IniFile& ini)
|
|||||||
core->Get("GPUDeterminismMode", &m_strGPUDeterminismMode, "auto");
|
core->Get("GPUDeterminismMode", &m_strGPUDeterminismMode, "auto");
|
||||||
core->Get("GameCubeAdapter", &m_GameCubeAdapter, true);
|
core->Get("GameCubeAdapter", &m_GameCubeAdapter, true);
|
||||||
core->Get("AdapterRumble", &m_AdapterRumble, true);
|
core->Get("AdapterRumble", &m_AdapterRumble, true);
|
||||||
|
core->Get("PerfMapDir", &m_perfDir, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
void SConfig::LoadMovieSettings(IniFile& ini)
|
void SConfig::LoadMovieSettings(IniFile& ini)
|
||||||
|
@ -104,12 +104,10 @@ bool DolphinApp::OnInit()
|
|||||||
bool UseLogger = false;
|
bool UseLogger = false;
|
||||||
bool selectVideoBackend = false;
|
bool selectVideoBackend = false;
|
||||||
bool selectAudioEmulation = false;
|
bool selectAudioEmulation = false;
|
||||||
bool selectPerfDir = false;
|
|
||||||
|
|
||||||
wxString videoBackendName;
|
wxString videoBackendName;
|
||||||
wxString audioEmulationName;
|
wxString audioEmulationName;
|
||||||
wxString userPath;
|
wxString userPath;
|
||||||
wxString perfDir;
|
|
||||||
|
|
||||||
#if wxUSE_CMDLINE_PARSER // Parse command lines
|
#if wxUSE_CMDLINE_PARSER // Parse command lines
|
||||||
wxCmdLineEntryDesc cmdLineDesc[] =
|
wxCmdLineEntryDesc cmdLineDesc[] =
|
||||||
@ -159,11 +157,6 @@ bool DolphinApp::OnInit()
|
|||||||
"User folder path",
|
"User folder path",
|
||||||
wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL
|
wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL
|
||||||
},
|
},
|
||||||
{
|
|
||||||
wxCMD_LINE_OPTION, "P", "perf_dir",
|
|
||||||
"Directory for Linux perf perf-$pid.map file",
|
|
||||||
wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
wxCMD_LINE_NONE, nullptr, nullptr, nullptr, wxCMD_LINE_VAL_NONE, 0
|
wxCMD_LINE_NONE, nullptr, nullptr, nullptr, wxCMD_LINE_VAL_NONE, 0
|
||||||
}
|
}
|
||||||
@ -189,7 +182,6 @@ bool DolphinApp::OnInit()
|
|||||||
BatchMode = parser.Found("batch");
|
BatchMode = parser.Found("batch");
|
||||||
selectVideoBackend = parser.Found("video_backend", &videoBackendName);
|
selectVideoBackend = parser.Found("video_backend", &videoBackendName);
|
||||||
selectAudioEmulation = parser.Found("audio_emulation", &audioEmulationName);
|
selectAudioEmulation = parser.Found("audio_emulation", &audioEmulationName);
|
||||||
selectPerfDir = parser.Found("perf_dir", &perfDir);
|
|
||||||
playMovie = parser.Found("movie", &movieFile);
|
playMovie = parser.Found("movie", &movieFile);
|
||||||
parser.Found("user", &userPath);
|
parser.Found("user", &userPath);
|
||||||
#endif // wxUSE_CMDLINE_PARSER
|
#endif // wxUSE_CMDLINE_PARSER
|
||||||
@ -207,12 +199,6 @@ bool DolphinApp::OnInit()
|
|||||||
InitLanguageSupport(); // The language setting is loaded from the user directory
|
InitLanguageSupport(); // The language setting is loaded from the user directory
|
||||||
UICommon::Init();
|
UICommon::Init();
|
||||||
|
|
||||||
if (selectPerfDir)
|
|
||||||
{
|
|
||||||
SConfig::GetInstance().m_perfDir =
|
|
||||||
WxStrToStr(perfDir);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (selectVideoBackend && videoBackendName != wxEmptyString)
|
if (selectVideoBackend && videoBackendName != wxEmptyString)
|
||||||
SConfig::GetInstance().m_strVideoBackend =
|
SConfig::GetInstance().m_strVideoBackend =
|
||||||
WxStrToStr(videoBackendName);
|
WxStrToStr(videoBackendName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user