diff options
| -rw-r--r-- | src/yuzu/main.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 2402ea6f5..442408280 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | #include <cinttypes> | 4 | #include <cinttypes> |
| 5 | #include <clocale> | 5 | #include <clocale> |
| 6 | #include <cmath> | 6 | #include <cmath> |
| 7 | #include <format> | ||
| 8 | #include <fstream> | 7 | #include <fstream> |
| 9 | #include <iostream> | 8 | #include <iostream> |
| 10 | #include <memory> | 9 | #include <memory> |
| @@ -2998,8 +2997,8 @@ bool GMainWindow::MakeShortcutIcoPath(const u64 program_id, const std::string_vi | |||
| 2998 | } | 2997 | } |
| 2999 | 2998 | ||
| 3000 | // Create icon file path | 2999 | // Create icon file path |
| 3001 | out_icon_path /= (program_id == 0 ? std::format("yuzu-{}.{}", game_file_name, ico_extension) | 3000 | out_icon_path /= (program_id == 0 ? fmt::format("yuzu-{}.{}", game_file_name, ico_extension) |
| 3002 | : std::format("yuzu-{:016X}.{}", program_id, ico_extension)); | 3001 | : fmt::format("yuzu-{:016X}.{}", program_id, ico_extension)); |
| 3003 | return true; | 3002 | return true; |
| 3004 | } | 3003 | } |
| 3005 | 3004 | ||
| @@ -3032,7 +3031,7 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga | |||
| 3032 | const auto control = pm.GetControlMetadata(); | 3031 | const auto control = pm.GetControlMetadata(); |
| 3033 | const auto loader = | 3032 | const auto loader = |
| 3034 | Loader::GetLoader(*system, vfs->OpenFile(game_path, FileSys::Mode::Read)); | 3033 | Loader::GetLoader(*system, vfs->OpenFile(game_path, FileSys::Mode::Read)); |
| 3035 | game_title = std::format("{:016X}", program_id); | 3034 | game_title = fmt::format("{:016X}", program_id); |
| 3036 | if (control.first != nullptr) { | 3035 | if (control.first != nullptr) { |
| 3037 | game_title = control.first->GetApplicationName(); | 3036 | game_title = control.first->GetApplicationName(); |
| 3038 | } else { | 3037 | } else { |
| @@ -3081,12 +3080,12 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga | |||
| 3081 | } | 3080 | } |
| 3082 | #endif // __linux__ | 3081 | #endif // __linux__ |
| 3083 | // Create shortcut | 3082 | // Create shortcut |
| 3084 | std::string arguments = std::format("-g \"{:s}\"", game_path); | 3083 | std::string arguments = fmt::format("-g \"{:s}\"", game_path); |
| 3085 | if (GMainWindow::CreateShortcutMessagesGUI( | 3084 | if (GMainWindow::CreateShortcutMessagesGUI( |
| 3086 | this, GMainWindow::CREATE_SHORTCUT_MSGBOX_FULLSCREEN_YES, qt_game_title)) { | 3085 | this, GMainWindow::CREATE_SHORTCUT_MSGBOX_FULLSCREEN_YES, qt_game_title)) { |
| 3087 | arguments = "-f " + arguments; | 3086 | arguments = "-f " + arguments; |
| 3088 | } | 3087 | } |
| 3089 | const std::string comment = std::format("Start {:s} with the yuzu Emulator", game_title); | 3088 | const std::string comment = fmt::format("Start {:s} with the yuzu Emulator", game_title); |
| 3090 | const std::string categories = "Game;Emulator;Qt;"; | 3089 | const std::string categories = "Game;Emulator;Qt;"; |
| 3091 | const std::string keywords = "Switch;Nintendo;"; | 3090 | const std::string keywords = "Switch;Nintendo;"; |
| 3092 | 3091 | ||