mirror of
https://github.com/BanjoRecomp/BanjoRecomp
synced 2026-05-23 14:41:41 -04:00
Initialize NFD in all platforms correctly.
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user