mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-22 14:31:39 +00:00
- gui: firmware version display text correction (fw >= 10)
This commit is contained in:
parent
719a958cb5
commit
fc201a7c92
|
@ -485,8 +485,10 @@ void GameListFrame::Refresh(const bool from_drive, const bool scroll_after) {
|
|||
game.name = psf.GetString("TITLE");
|
||||
game.serial = psf.GetString("TITLE_ID");
|
||||
u32 fw_int = psf.GetInteger("SYSTEM_VER");
|
||||
QString fw = QString::number(fw_int, 16).toUpper().left(3).insert(1, '.');
|
||||
game.fw = (fw_int == 0) ? "0.00" : fw.toStdString();
|
||||
QString fw = QString::number(fw_int, 16);
|
||||
QString fw_ = fw.length() > 7 ? QString::number(fw_int, 16).left(3).insert(2, '.')
|
||||
: fw.left(3).insert(1, '.');
|
||||
game.fw = (fw_int == 0) ? "0.00" : fw_.toStdString();
|
||||
game.version = psf.GetString("APP_VER");
|
||||
game.category = psf.GetString("CATEGORY");
|
||||
|
||||
|
|
Loading…
Reference in a new issue