patch_engine: Apply patch when APP_VER is unknown
This commit is contained in:
@@ -923,8 +923,9 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
||||
m_title_id = std::string(psf::get_string(_psf, "TITLE_ID"));
|
||||
m_cat = std::string(psf::get_string(_psf, "CATEGORY"));
|
||||
|
||||
m_app_version = std::string(psf::get_string(_psf, "APP_VER", "Unknown"));
|
||||
const auto version_app = psf::get_string(_psf, "APP_VER", "Unknown");
|
||||
const auto version_disc = psf::get_string(_psf, "VERSION", "Unknown");
|
||||
m_app_version = version_app == "Unknown" ? version_disc : version_app;
|
||||
|
||||
if (!_psf.empty() && m_cat.empty())
|
||||
{
|
||||
@@ -935,7 +936,7 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
||||
sys_log.notice("Title: %s", GetTitle());
|
||||
sys_log.notice("Serial: %s", GetTitleID());
|
||||
sys_log.notice("Category: %s", GetCat());
|
||||
sys_log.notice("Version: %s / %s", GetAppVersion(), version_disc);
|
||||
sys_log.notice("Version: APP_VER=%s VERSION=%s", version_app, version_disc);
|
||||
|
||||
if (!add_only && !force_global_config && m_config_override_path.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user