summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index f607f464a..f4a9a7171 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1401,7 +1401,8 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
1401 if (loader != nullptr && loader->ReadProgramId(title_id) == Loader::ResultStatus::Success && 1401 if (loader != nullptr && loader->ReadProgramId(title_id) == Loader::ResultStatus::Success &&
1402 type == StartGameType::Normal) { 1402 type == StartGameType::Normal) {
1403 // Load per game settings 1403 // Load per game settings
1404 const auto file_path = std::filesystem::path{filename.toStdU16String()}; 1404 const auto file_path =
1405 std::filesystem::path{Common::U16StringFromBuffer(filename.utf16(), filename.size())};
1405 const auto config_file_name = title_id == 0 1406 const auto config_file_name = title_id == 0
1406 ? Common::FS::PathToUTF8String(file_path.filename()) 1407 ? Common::FS::PathToUTF8String(file_path.filename())
1407 : fmt::format("{:016X}", title_id); 1408 : fmt::format("{:016X}", title_id);
@@ -1482,7 +1483,8 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
1482 } 1483 }
1483 if (res != Loader::ResultStatus::Success || title_name.empty()) { 1484 if (res != Loader::ResultStatus::Success || title_name.empty()) {
1484 title_name = Common::FS::PathToUTF8String( 1485 title_name = Common::FS::PathToUTF8String(
1485 std::filesystem::path{filename.toStdU16String()}.filename()); 1486 std::filesystem::path{Common::U16StringFromBuffer(filename.utf16(), filename.size())}
1487 .filename());
1486 } 1488 }
1487 const bool is_64bit = system->Kernel().CurrentProcess()->Is64BitProcess(); 1489 const bool is_64bit = system->Kernel().CurrentProcess()->Is64BitProcess();
1488 const auto instruction_set_suffix = is_64bit ? tr("(64-bit)") : tr("(32-bit)"); 1490 const auto instruction_set_suffix = is_64bit ? tr("(64-bit)") : tr("(32-bit)");