Skip to content

Commit

Permalink
Qt: Fix loading/saving state to file on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Apr 3, 2024
1 parent 59a7c3d commit bd19276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/duckstation-qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit bd19276

Please sign in to comment.