diff options
| author | 2015-10-20 20:58:23 +0300 | |
|---|---|---|
| committer | 2015-10-20 20:58:23 +0300 | |
| commit | 6e5738917219fe619689d6bafca4a75b61dcd689 (patch) | |
| tree | e3f8b61e6ae978318c4f449ce9c53a7882aa6e3d /src/citra_qt/main.cpp | |
| parent | Merge pull request #1207 from kemenaran/persist-citra-settings-in-qt (diff) | |
| download | yuzu-6e5738917219fe619689d6bafca4a75b61dcd689.tar.gz yuzu-6e5738917219fe619689d6bafca4a75b61dcd689.tar.xz yuzu-6e5738917219fe619689d6bafca4a75b61dcd689.zip | |
change file path encoding to Local8bit()
to support non-latin characters
Diffstat (limited to 'src/citra_qt/main.cpp')
| -rw-r--r-- | src/citra_qt/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index d25220e25..bcff6be64 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp | |||
| @@ -355,7 +355,7 @@ void GMainWindow::UpdateRecentFiles() { | |||
| 355 | } | 355 | } |
| 356 | 356 | ||
| 357 | void GMainWindow::OnGameListLoadFile(QString game_path) { | 357 | void GMainWindow::OnGameListLoadFile(QString game_path) { |
| 358 | BootGame(game_path.toLatin1().data()); | 358 | BootGame(game_path.toLocal8Bit().data()); |
| 359 | } | 359 | } |
| 360 | 360 | ||
| 361 | void GMainWindow::OnMenuLoadFile() { | 361 | void GMainWindow::OnMenuLoadFile() { |
| @@ -367,7 +367,7 @@ void GMainWindow::OnMenuLoadFile() { | |||
| 367 | settings.setValue("romsPath", QFileInfo(filename).path()); | 367 | settings.setValue("romsPath", QFileInfo(filename).path()); |
| 368 | StoreRecentFile(filename); | 368 | StoreRecentFile(filename); |
| 369 | 369 | ||
| 370 | BootGame(filename.toLatin1().data()); | 370 | BootGame(filename.toLocal8Bit().data()); |
| 371 | } | 371 | } |
| 372 | } | 372 | } |
| 373 | 373 | ||
| @@ -379,7 +379,7 @@ void GMainWindow::OnMenuLoadSymbolMap() { | |||
| 379 | if (!filename.isEmpty()) { | 379 | if (!filename.isEmpty()) { |
| 380 | settings.setValue("symbolsPath", QFileInfo(filename).path()); | 380 | settings.setValue("symbolsPath", QFileInfo(filename).path()); |
| 381 | 381 | ||
| 382 | LoadSymbolMap(filename.toLatin1().data()); | 382 | LoadSymbolMap(filename.toLocal8Bit().data()); |
| 383 | } | 383 | } |
| 384 | } | 384 | } |
| 385 | 385 | ||
| @@ -400,7 +400,7 @@ void GMainWindow::OnMenuRecentFile() { | |||
| 400 | QString filename = action->data().toString(); | 400 | QString filename = action->data().toString(); |
| 401 | QFileInfo file_info(filename); | 401 | QFileInfo file_info(filename); |
| 402 | if (file_info.exists()) { | 402 | if (file_info.exists()) { |
| 403 | BootGame(filename.toLatin1().data()); | 403 | BootGame(filename.toLocal8Bit().data()); |
| 404 | StoreRecentFile(filename); // Put the filename on top of the list | 404 | StoreRecentFile(filename); // Put the filename on top of the list |
| 405 | } else { | 405 | } else { |
| 406 | // Display an error message and remove the file from the list. | 406 | // Display an error message and remove the file from the list. |