diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2019-04-10 12:11:50 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-21 16:43:10 -0400 |
| commit | 9cef1068c59daffd3e3ad3d48f8a8716c18c097e (patch) | |
| tree | 1a1ed641268457474288d1be68d62a9f62129a6d /src/core/file_sys/bis_factory.cpp | |
| parent | 8660185e6385bc89494081ec74ff211f42b64de0 (diff) | |
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
Diffstat (limited to 'src/core/file_sys/bis_factory.cpp')
| -rw-r--r-- | src/core/file_sys/bis_factory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/bis_factory.cpp b/src/core/file_sys/bis_factory.cpp index cbeb2f73ad..6cd0a98ebe 100644 --- a/src/core/file_sys/bis_factory.cpp +++ b/src/core/file_sys/bis_factory.cpp @@ -48,7 +48,7 @@ PlaceholderCache* BISFactory::GetUserNANDPlaceholder() const { VirtualDir BISFactory::GetModificationLoadRoot(u64 title_id) const { // 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 GetOrCreateDirectoryRelative(load_root, fmt::format("/{:016X}", title_id)); } |
