From deb4b0320054dc48ab0a6422bd6a984caddd91f3 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 19 Nov 2020 20:54:10 +0100 Subject: [PATCH] Add VERSION fallback to GetPkgInfo --- rpcs3/rpcs3qt/game_compatibility.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/game_compatibility.cpp b/rpcs3/rpcs3qt/game_compatibility.cpp index 77356818cd..2575fd7ca9 100644 --- a/rpcs3/rpcs3qt/game_compatibility.cpp +++ b/rpcs3/rpcs3qt/game_compatibility.cpp @@ -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) {