- gui: firmware version display text correction (fw >= 10)
This commit is contained in:
parent
8ba6d7add0
commit
00d401e103
|
@ -485,8 +485,10 @@ void GameListFrame::Refresh(const bool from_drive, const bool scroll_after) {
|
||||||
game.name = psf.GetString("TITLE");
|
game.name = psf.GetString("TITLE");
|
||||||
game.serial = psf.GetString("TITLE_ID");
|
game.serial = psf.GetString("TITLE_ID");
|
||||||
u32 fw_int = psf.GetInteger("SYSTEM_VER");
|
u32 fw_int = psf.GetInteger("SYSTEM_VER");
|
||||||
QString fw = QString::number(fw_int, 16).toUpper().left(3).insert(1, '.');
|
QString fw = QString::number(fw_int, 16);
|
||||||
game.fw = (fw_int == 0) ? "0.00" : fw.toStdString();
|
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.version = psf.GetString("APP_VER");
|
||||||
game.category = psf.GetString("CATEGORY");
|
game.category = psf.GetString("CATEGORY");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue