|
|
@ -14,7 +14,11 @@ BISFactory::BISFactory(VirtualDir nand_root_, VirtualDir load_root_, VirtualDir
|
|
|
|
sysnand_cache(std::make_unique<RegisteredCache>(
|
|
|
|
sysnand_cache(std::make_unique<RegisteredCache>(
|
|
|
|
GetOrCreateDirectoryRelative(nand_root, "/system/Contents/registered"))),
|
|
|
|
GetOrCreateDirectoryRelative(nand_root, "/system/Contents/registered"))),
|
|
|
|
usrnand_cache(std::make_unique<RegisteredCache>(
|
|
|
|
usrnand_cache(std::make_unique<RegisteredCache>(
|
|
|
|
GetOrCreateDirectoryRelative(nand_root, "/user/Contents/registered"))) {}
|
|
|
|
GetOrCreateDirectoryRelative(nand_root, "/user/Contents/registered"))),
|
|
|
|
|
|
|
|
sysnand_placeholder(std::make_unique<PlaceholderCache>(
|
|
|
|
|
|
|
|
GetOrCreateDirectoryRelative(nand_root, "/system/Contents/placehld"))),
|
|
|
|
|
|
|
|
usrnand_placeholder(std::make_unique<PlaceholderCache>(
|
|
|
|
|
|
|
|
GetOrCreateDirectoryRelative(nand_root, "/user/Contents/placehld"))) {}
|
|
|
|
|
|
|
|
|
|
|
|
BISFactory::~BISFactory() = default;
|
|
|
|
BISFactory::~BISFactory() = default;
|
|
|
|
|
|
|
|
|
|
|
@ -34,6 +38,14 @@ RegisteredCache* BISFactory::GetUserNANDContents() const {
|
|
|
|
return usrnand_cache.get();
|
|
|
|
return usrnand_cache.get();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlaceholderCache* BISFactory::GetSystemNANDPlaceholder() const {
|
|
|
|
|
|
|
|
return sysnand_placeholder.get();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlaceholderCache* BISFactory::GetUserNANDPlaceholder() const {
|
|
|
|
|
|
|
|
return usrnand_placeholder.get();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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 & 0x800) > 0)
|
|
|
|