config: Don't load config in the Emulator class

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 12:02:39 +07:00
parent ee974414d2
commit 10cfcce903

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();