MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / main

Function main

Source/Tools/FEXConfig/Main.cpp:450–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450int main(int Argc, char** Argv) {
451 QApplication App(Argc, Argv);
452
453 FEX::Config::InitializeConfigs(FEX::Config::PortableInformation {});
454 fextl::string ConfigFilename = Argc > 1 ? Argv[1] : FEXCore::Config::GetConfigFileLocation();
455 ConfigInit(ConfigFilename);
456
457 qInfo() << "Opening" << ConfigFilename.c_str();
458 if (!OpenFile(ConfigFilename)) {
459 // Load defaults if not found
460 ConfigFilename.clear();
461 LoadDefaultSettings();
462 }
463
464 ConfigRuntime Runtime(ConfigFilename.c_str());
465 App.setWindowIcon(QIcon(":/icon.png"));
466 return App.exec();
467}

Callers

nothing calls this directly

Calls 6

InitializeConfigsFunction · 0.85
GetConfigFileLocationFunction · 0.85
ConfigInitFunction · 0.85
OpenFileFunction · 0.85
LoadDefaultSettingsFunction · 0.85
clearMethod · 0.80

Tested by

no test coverage detected