mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
patch_manager: implement serials and app_versions
This commit is contained in:
parent
a7a5034958
commit
12dded403f
9 changed files with 596 additions and 278 deletions
|
|
@ -850,7 +850,7 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
|||
m_title_id = psf::get_string(_psf, "TITLE_ID");
|
||||
m_cat = psf::get_string(_psf, "CATEGORY");
|
||||
|
||||
const std::string version_app = psf::get_string(_psf, "APP_VER", "Unknown");
|
||||
m_app_version = psf::get_string(_psf, "APP_VER", "Unknown");
|
||||
const std::string version_disc = psf::get_string(_psf, "VERSION", "Unknown");
|
||||
|
||||
if (!_psf.empty() && m_cat.empty())
|
||||
|
|
@ -862,7 +862,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", version_app, version_disc);
|
||||
sys_log.notice("Version: %s / %s", GetAppVersion(), version_disc);
|
||||
|
||||
if (!add_only && !force_global_config)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ class Emulator final
|
|||
std::string m_path_old;
|
||||
std::string m_title_id;
|
||||
std::string m_title;
|
||||
std::string m_app_version;
|
||||
std::string m_cat;
|
||||
std::string m_dir;
|
||||
std::string m_sfo_dir;
|
||||
|
|
@ -131,6 +132,11 @@ public:
|
|||
return m_title + (m_title_id.empty() ? "" : " [" + m_title_id + "]");
|
||||
}
|
||||
|
||||
const std::string& GetAppVersion() const
|
||||
{
|
||||
return m_app_version;
|
||||
}
|
||||
|
||||
const std::string& GetCat() const
|
||||
{
|
||||
return m_cat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue