diff --git a/src/main/main.cpp b/src/main/main.cpp index 3ef9dfe..0002ad8 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -608,9 +608,6 @@ int main(int argc, char** argv) { // Set up console output to accept UTF-8 on windows SetConsoleOutputCP(CP_UTF8); - // Initialize native file dialogs. - NFD_Init(); - // Change to a font that supports Japanese characters CONSOLE_FONT_INFOEX cfi; cfi.cbSize = sizeof cfi; @@ -636,6 +633,9 @@ int main(int argc, char** argv) { std::filesystem::current_path("/var/data", ec); #endif + // Initialize native file dialogs. + NFD_Init(); + // Initialize SDL audio and set the output frequency. SDL_InitSubSystem(SDL_INIT_AUDIO); reset_audio(48000);