Skip to content

Commit

Permalink
Merge pull request #3379 from neobrain/fix_fexconfig_paths
Browse files Browse the repository at this point in the history
FEXConfig: Initialize paths before trying to read configuration files
  • Loading branch information
Sonicadvance1 committed Jan 30, 2024
2 parents 31a4158 + c1ef11f commit 79526b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Tools/FEXConfig/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,13 +941,13 @@ namespace {
}

int main(int argc, char **argv) {
FEX::Config::InitializeConfigs();

fextl::string ImGUIConfig = FEXCore::Config::GetConfigDirectory(false) + "FEXConfig_imgui.ini";
auto [window, gl_context] = FEX::GUI::SetupIMGui("#FEXConfig", ImGUIConfig);

GlobalTime = std::chrono::high_resolution_clock::now();

FEX::Config::InitializeConfigs();

// Attempt to open the config passed in
if (argc > 1) {
if (OpenFile(argv[1], true)) {
Expand Down

0 comments on commit 79526b9

Please sign in to comment.