| 448 | } |
| 449 | |
| 450 | int 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 | } |
nothing calls this directly
no test coverage detected