mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-08 06:59:08 +01:00
patch_manager: Add short-circuit edge-case to GetPatchVersionNames
If title ID is 0, there are no add ons, prevents wasting time looking for them.
This commit is contained in:
parent
06db4d94fd
commit
62d772eaed
1 changed files with 2 additions and 0 deletions
|
@ -408,6 +408,8 @@ static bool IsDirValidAndNonEmpty(const VirtualDir& dir) {
|
||||||
|
|
||||||
std::map<std::string, std::string, std::less<>> PatchManager::GetPatchVersionNames(
|
std::map<std::string, std::string, std::less<>> PatchManager::GetPatchVersionNames(
|
||||||
VirtualFile update_raw) const {
|
VirtualFile update_raw) const {
|
||||||
|
if (title_id == 0)
|
||||||
|
return {};
|
||||||
std::map<std::string, std::string, std::less<>> out;
|
std::map<std::string, std::string, std::less<>> out;
|
||||||
const auto& installed = Core::System::GetInstance().GetContentProvider();
|
const auto& installed = Core::System::GetInstance().GetContentProvider();
|
||||||
const auto& disabled = Settings::values.disabled_addons[title_id];
|
const auto& disabled = Settings::values.disabled_addons[title_id];
|
||||||
|
|
Loading…
Reference in a new issue