mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 04:47:53 +00:00
bis_factory: Fix mod loader edge-case with homebrew title IDs
Fixes a bug where homebrew that has a title ID with the update bit set can cause issues with the PatchManager
This commit is contained in:
parent
b71bda45ae
commit
256a50ad15
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ PlaceholderCache* BISFactory::GetUserNANDPlaceholder() const {
|
||||||
|
|
||||||
VirtualDir BISFactory::GetModificationLoadRoot(u64 title_id) const {
|
VirtualDir BISFactory::GetModificationLoadRoot(u64 title_id) const {
|
||||||
// LayeredFS doesn't work on updates and title id-less homebrew
|
// LayeredFS doesn't work on updates and title id-less homebrew
|
||||||
if (title_id == 0 || (title_id & 0x800) > 0)
|
if (title_id == 0 || (title_id & 0xFFF) == 0x800)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
return GetOrCreateDirectoryRelative(load_root, fmt::format("/{:016X}", title_id));
|
return GetOrCreateDirectoryRelative(load_root, fmt::format("/{:016X}", title_id));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue