config: Don't load config in the Emulator class (#1965)

Allows overriding of configs in frontends.

Fix set fullscreen not working when specified in the CLI.
This commit is contained in:
Quang Ngô 2024-12-29 17:36:16 +07:00 committed by GitHub
parent ab7e794f23
commit 468d7ea80e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,10 +45,6 @@ Frontend::WindowSDL* g_window = nullptr;
namespace Core {
Emulator::Emulator() {
// Read configuration file.
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
Config::load(config_dir / "config.toml");
// Initialize NT API functions and set high priority
#ifdef _WIN32
Common::NtApi::Initialize();