Qt: Remove default "Unknown" in GameInfo struct

There is no need to initialize these anymore.
The game list already uses its own fallback string constants if needed.
This commit is contained in:
Megamouse 2023-12-02 23:59:15 +01:00
parent a97bad97ae
commit 8ef844ca53
6 changed files with 12 additions and 11 deletions

View file

@ -9,12 +9,12 @@ struct GameInfo
std::string icon_path;
std::string movie_path;
std::string name = "Unknown";
std::string serial = "Unknown";
std::string app_ver = "Unknown";
std::string version = "Unknown";
std::string category = "Unknown";
std::string fw = "Unknown";
std::string name;
std::string serial;
std::string app_ver;
std::string version;
std::string category;
std::string fw;
u32 attr = 0;
u32 bootable = 0;

View file

@ -497,6 +497,7 @@ void game_list_frame::OnParsingFinished()
game.serial = dir_or_elf.substr(dir_or_elf.find_last_of(fs::delim) + 1);
game.category = cat::cat_ps3_os.toStdString(); // Key for operating system executables
game.version = utils::get_firmware_version();
game.app_ver = game.version;
game.fw = game.version;
game.bootable = 1;
game.icon_path = dev_flash + "vsh/resource/explore/icon/icon_home.png";
@ -516,7 +517,7 @@ void game_list_frame::OnParsingFinished()
}
}
if (game.name == "Unknown")
if (game.name.empty())
{
game.name = game.serial;
}