mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
Qt: use GameInfo's bootable instead of GUI_GameInfo's bootable member
This commit is contained in:
parent
49a4015d5d
commit
28e19a1d14
2 changed files with 2 additions and 4 deletions
|
@ -329,6 +329,7 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
|
||||||
game.parental_lvl = psf::get_integer(psf, "PARENTAL_LEVEL");
|
game.parental_lvl = psf::get_integer(psf, "PARENTAL_LEVEL");
|
||||||
game.resolution = psf::get_integer(psf, "RESOLUTION");
|
game.resolution = psf::get_integer(psf, "RESOLUTION");
|
||||||
game.sound_format = psf::get_integer(psf, "SOUND_FORMAT");
|
game.sound_format = psf::get_integer(psf, "SOUND_FORMAT");
|
||||||
|
game.bootable = psf::get_integer(psf, "BOOTABLE", 0);
|
||||||
|
|
||||||
// Detect duplication
|
// Detect duplication
|
||||||
if (!serial_cat[game.serial].emplace(game.category).second)
|
if (!serial_cat[game.serial].emplace(game.category).second)
|
||||||
|
@ -338,7 +339,6 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
|
||||||
|
|
||||||
serials.insert(qstr(game.serial));
|
serials.insert(qstr(game.serial));
|
||||||
|
|
||||||
bool bootable = false;
|
|
||||||
auto cat = category::cat_boot.find(game.category);
|
auto cat = category::cat_boot.find(game.category);
|
||||||
if (cat != category::cat_boot.end())
|
if (cat != category::cat_boot.end())
|
||||||
{
|
{
|
||||||
|
@ -352,7 +352,6 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
|
||||||
}
|
}
|
||||||
|
|
||||||
game.category = sstr(cat->second);
|
game.category = sstr(cat->second);
|
||||||
bootable = true;
|
|
||||||
}
|
}
|
||||||
else if ((cat = category::cat_data.find(game.category)) != category::cat_data.end())
|
else if ((cat = category::cat_data.find(game.category)) != category::cat_data.end())
|
||||||
{
|
{
|
||||||
|
@ -381,7 +380,7 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
|
||||||
|
|
||||||
QPixmap pxmap = PaintedPixmap(img, hasCustomConfig);
|
QPixmap pxmap = PaintedPixmap(img, hasCustomConfig);
|
||||||
|
|
||||||
m_game_data.push_back({ game, m_game_compat->GetCompatibility(game.serial), img, pxmap, bootable, hasCustomConfig });
|
m_game_data.push_back({ game, m_game_compat->GetCompatibility(game.serial), img, pxmap, hasCustomConfig });
|
||||||
}
|
}
|
||||||
catch (const std::exception& e)
|
catch (const std::exception& e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -166,7 +166,6 @@ struct GUI_GameInfo
|
||||||
compat_status compat;
|
compat_status compat;
|
||||||
QImage icon;
|
QImage icon;
|
||||||
QPixmap pxmap;
|
QPixmap pxmap;
|
||||||
bool bootable;
|
|
||||||
bool hasCustomConfig;
|
bool hasCustomConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue