Qt: Fix loading/saving state to file on Windows

This commit is contained in:
Stenzek 2024-04-03 19:25:54 +10:00
parent 59a7c3d9a8
commit bd19276cf5
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -931,7 +931,7 @@ void MainWindow::populateLoadStateMenu(const char* game_serial, QMenu* menu)
if (path.isEmpty())
return;
g_emu_thread->loadState(path);
g_emu_thread->loadState(QDir::toNativeSeparators(path));
});
QAction* load_from_state = menu->addAction(tr("Undo Load State"));
load_from_state->setEnabled(System::CanUndoLoadState());
@ -973,7 +973,7 @@ void MainWindow::populateSaveStateMenu(const char* game_serial, QMenu* menu)
if (path.isEmpty())
return;
g_emu_thread->saveState(path);
g_emu_thread->saveState(QDir::toNativeSeparators(path));
});
menu->addSeparator();