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ô authored and GitHub committed 2024-12-29 12:36:16 +02:00
1 parent ab7e794f23
commit 468d7ea80e
1 file changed
-4
-4
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();