Fix Windows

This commit is contained in:
CocoSimone
2022-08-04 21:52:18 +02:00
parent c448143432
commit 23ebc1edc1
4 changed files with 20 additions and 10 deletions

View File

@@ -367,7 +367,7 @@ void Window::Update(std::unique_ptr<BaseCore>& core) {
if(ImGui::BeginMenu("Open")) {
if(ImGui::MenuItem("Nintendo 64")) {
nfdchar_t* outpath;
const nfdnfilteritem_t filter {"Nintendo 64 roms", "n64,z64,v64,N64,Z64,V64"};
const nfdu8filteritem_t filter {"Nintendo 64 roms", "n64,z64,v64,N64,Z64,V64"};
nfdresult_t result = NFD_OpenDialog(&outpath, &filter, 1, nullptr);
if(result == NFD_OKAY) {
core = std::make_unique<n64::Core>(outpath);