formatting fixes

This commit is contained in:
Jeroen 2023-08-21 22:11:33 +02:00
parent afab51e9ac
commit 7161a2416c
2 changed files with 3 additions and 3 deletions

View file

@ -2761,7 +2761,8 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
#endif
std::filesystem::path icon_path =
icons_path / ((program_id == 0 ? fmt::format("yuzu-{}", game_file_name)
: fmt::format("yuzu-{:016X}", program_id)) + icon_extension);
: fmt::format("yuzu-{:016X}", program_id)) +
icon_extension);
// Get icon from game file
std::vector<u8> icon_image_file{};

View file

@ -112,8 +112,7 @@ bool SaveIconToFile(const char* path, QImage image) {
return true;
}
#else
bool SaveAsIco(QImage image) {
return false;
}
}
#endif