Initialize NFD in all platforms correctly.

This commit is contained in:
Dario
2026-01-10 14:37:14 -03:00
parent 826ae61335
commit 56647922ab
+3 -3
View File
@@ -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);