mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-13 23:46:40 +00:00
fs.mitm: Make PRODINFO always read-only.
This commit is contained in:
parent
1932662b4c
commit
a00e120bf7
1 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,9 @@ Result FsMitmService::OpenBisStorage(Out<std::shared_ptr<IStorageInterface>> out
|
||||||
const bool allow_writes = this->title_id < 0x0100000000001000;
|
const bool allow_writes = this->title_id < 0x0100000000001000;
|
||||||
if (bis_partition_id == BisStorageId_Boot0) {
|
if (bis_partition_id == BisStorageId_Boot0) {
|
||||||
storage = std::make_shared<IStorageInterface>(new Boot0Storage(bis_storage, this->title_id));
|
storage = std::make_shared<IStorageInterface>(new Boot0Storage(bis_storage, this->title_id));
|
||||||
|
} else if (bis_partition_id == BisStorageId_Prodinfo) {
|
||||||
|
/* PRODINFO should *never* be writable. */
|
||||||
|
storage = std::make_shared<IStorageInterface>(new ROProxyStorage(bis_storage));
|
||||||
} else {
|
} else {
|
||||||
if (allow_writes) {
|
if (allow_writes) {
|
||||||
storage = std::make_shared<IStorageInterface>(new ROProxyStorage(bis_storage));
|
storage = std::make_shared<IStorageInterface>(new ROProxyStorage(bis_storage));
|
||||||
|
|
Loading…
Reference in a new issue