mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
patch_manager: prefer serial patches over All
This commit is contained in:
parent
6a486d3402
commit
c72a6f8e6f
@ -568,28 +568,28 @@ std::size_t patch_engine::apply_patch(const std::string& name, u8* dst, u32 file
|
|||||||
{
|
{
|
||||||
std::string found_serial;
|
std::string found_serial;
|
||||||
|
|
||||||
if (serials.find(patch_key::all) != serials.end())
|
if (serials.find(serial) != serials.end())
|
||||||
{
|
|
||||||
found_serial = patch_key::all;
|
|
||||||
}
|
|
||||||
else if (serials.find(serial) != serials.end())
|
|
||||||
{
|
{
|
||||||
found_serial = serial;
|
found_serial = serial;
|
||||||
}
|
}
|
||||||
|
else if (serials.find(patch_key::all) != serials.end())
|
||||||
|
{
|
||||||
|
found_serial = patch_key::all;
|
||||||
|
}
|
||||||
|
|
||||||
if (!found_serial.empty())
|
if (!found_serial.empty())
|
||||||
{
|
{
|
||||||
const auto& app_versions = serials.at(found_serial);
|
const auto& app_versions = serials.at(found_serial);
|
||||||
std::string found_app_version;
|
std::string found_app_version;
|
||||||
|
|
||||||
if (app_versions.find(patch_key::all) != app_versions.end())
|
if (app_versions.find(app_version) != app_versions.end())
|
||||||
{
|
|
||||||
found_app_version = patch_key::all;
|
|
||||||
}
|
|
||||||
else if (app_versions.find(app_version) != app_versions.end())
|
|
||||||
{
|
{
|
||||||
found_app_version = app_version;
|
found_app_version = app_version;
|
||||||
}
|
}
|
||||||
|
else if (app_versions.find(patch_key::all) != app_versions.end())
|
||||||
|
{
|
||||||
|
found_app_version = patch_key::all;
|
||||||
|
}
|
||||||
|
|
||||||
if (!found_app_version.empty() && app_versions.at(found_app_version))
|
if (!found_app_version.empty() && app_versions.at(found_app_version))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user