mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 13:19:00 +00:00
removed load before init singleton
This commit is contained in:
@@ -41,7 +41,7 @@ void EmulatorSettings::PrintChangedSummary(const std::vector<std::string>& chang
|
||||
// ctor/dtor + singleton
|
||||
// --------------------
|
||||
EmulatorSettings::EmulatorSettings() {
|
||||
Load();
|
||||
// Load();
|
||||
}
|
||||
EmulatorSettings::~EmulatorSettings() {
|
||||
Save();
|
||||
|
||||
@@ -31,6 +31,7 @@ int main(int argc, char* argv[]) {
|
||||
// Load configurations
|
||||
std::shared_ptr<EmulatorSettings> emu_settings = std::make_shared<EmulatorSettings>();
|
||||
EmulatorSettings::SetInstance(emu_settings);
|
||||
emu_settings->Load();
|
||||
const auto user_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
|
||||
Config::load(user_dir / "config.toml");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user