mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Add VERSION fallback to GetPkgInfo
This commit is contained in:
parent
df94c906da
commit
deb4b03200
1 changed files with 7 additions and 1 deletions
|
@ -255,9 +255,15 @@ compat::package_info game_compatibility::GetPkgInfo(const QString& pkg_path, gam
|
|||
|
||||
compat::package_info info;
|
||||
info.path = pkg_path;
|
||||
info.title = qstr(std::string(psf::get_string(psf, title_key))); // Let's read this from the psf first
|
||||
info.title_id = qstr(std::string(psf::get_string(psf, "TITLE_ID", "Unknown")));
|
||||
info.version = qstr(std::string(psf::get_string(psf, "APP_VER")));
|
||||
info.title = qstr(std::string(psf::get_string(psf, title_key))); // Let's read this from the psf first
|
||||
|
||||
if (info.version.isEmpty())
|
||||
{
|
||||
// Fallback to VERSION
|
||||
info.version = qstr(std::string(psf::get_string(psf, "VERSION")));
|
||||
}
|
||||
|
||||
if (compat)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue