diff --git a/src/app/core/platform/file_dialog.mm b/src/app/core/platform/file_dialog.mm index ea64973e..793662a3 100644 --- a/src/app/core/platform/file_dialog.mm +++ b/src/app/core/platform/file_dialog.mm @@ -71,6 +71,7 @@ std::string yaze::core::FileDialogWrapper::ShowOpenFileDialog() { [openPanel setCanChooseFiles:YES]; [openPanel setCanChooseDirectories:NO]; [openPanel setAllowsMultipleSelection:NO]; + [openPanel setAllowedFileTypes:@[ @"sfc", @"smc", @"yaze" ]]; if ([openPanel runModal] == NSModalResponseOK) { NSURL* url = [[openPanel URLs] objectAtIndex:0]; diff --git a/src/app/core/window.cc b/src/app/core/window.cc index d41d29db..45cd6182 100644 --- a/src/app/core/window.cc +++ b/src/app/core/window.cc @@ -49,9 +49,6 @@ absl::Status CreateWindow(Window& window, int flags) { gui::ColorsYaze(); - ImGui_ImplSDLRenderer2_NewFrame(); - ImGui_ImplSDL2_NewFrame(); - const int audio_frequency = 48000; SDL_AudioSpec want, have; SDL_memset(&want, 0, sizeof(want));