mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Ported more options in new ini-manager. Use later.
This commit is contained in:
parent
1673ba217c
commit
89f14ec5ac
9 changed files with 653 additions and 52 deletions
|
@ -89,7 +89,7 @@ void Emulator::SetTitle(const std::string& title)
|
|||
void Emulator::CreateConfig(const std::string& name)
|
||||
{
|
||||
const std::string& path = "data/" + name;
|
||||
const std::string& ini_file = path + "/" + name + ".ini";
|
||||
const std::string& ini_file = path + "/settings.ini";
|
||||
|
||||
if (!fs::is_dir("data"))
|
||||
fs::create_dir("data");
|
||||
|
@ -265,7 +265,7 @@ void Emulator::Load()
|
|||
{
|
||||
name = name.substr(0, 4) + "-" + name.substr(4, 5);
|
||||
CreateConfig(name);
|
||||
rpcs3::config_t custom_config { "data/" + name + "/" + name + ".ini" };
|
||||
rpcs3::config_t custom_config { "data/" + name + "/settings.ini" };
|
||||
custom_config.load();
|
||||
rpcs3::state.config = custom_config;
|
||||
}
|
||||
|
@ -476,7 +476,6 @@ void Emulator::Stop()
|
|||
|
||||
RSXIOMem.Clear();
|
||||
vm::close();
|
||||
rpcs3::state.config = rpcs3::config; // fallback to default .ini
|
||||
|
||||
SendDbgCommand(DID_STOPPED_EMU);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue