diff options
| author | 2016-10-21 22:10:55 +0800 | |
|---|---|---|
| committer | 2016-11-19 18:55:35 +0200 | |
| commit | d7d6975af0971f5a07d489bdef522ca121bb30ec (patch) | |
| tree | 561c62a130c719cd3e6ffe7051d6be8a54e30cb6 /src/core/hle | |
| parent | FileSys: remove unused DiskArchive (diff) | |
| download | yuzu-d7d6975af0971f5a07d489bdef522ca121bb30ec.tar.gz yuzu-d7d6975af0971f5a07d489bdef522ca121bb30ec.tar.xz yuzu-d7d6975af0971f5a07d489bdef522ca121bb30ec.zip | |
FileSys: rename SaveDataCheck archive to NCCH archive
According to the observation from game and 3dbrew "Used for accessing general NCCH data"
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/fs/archive.cpp | 9 | ||||
| -rw-r--r-- | src/core/hle/service/fs/archive.h | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index 62cf2c249..4c29784e8 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp | |||
| @@ -15,8 +15,8 @@ | |||
| 15 | #include "common/logging/log.h" | 15 | #include "common/logging/log.h" |
| 16 | #include "core/file_sys/archive_backend.h" | 16 | #include "core/file_sys/archive_backend.h" |
| 17 | #include "core/file_sys/archive_extsavedata.h" | 17 | #include "core/file_sys/archive_extsavedata.h" |
| 18 | #include "core/file_sys/archive_ncch.h" | ||
| 18 | #include "core/file_sys/archive_savedata.h" | 19 | #include "core/file_sys/archive_savedata.h" |
| 19 | #include "core/file_sys/archive_savedatacheck.h" | ||
| 20 | #include "core/file_sys/archive_sdmc.h" | 20 | #include "core/file_sys/archive_sdmc.h" |
| 21 | #include "core/file_sys/archive_sdmcwriteonly.h" | 21 | #include "core/file_sys/archive_sdmcwriteonly.h" |
| 22 | #include "core/file_sys/archive_systemsavedata.h" | 22 | #include "core/file_sys/archive_systemsavedata.h" |
| @@ -554,10 +554,9 @@ void RegisterArchiveTypes() { | |||
| 554 | LOG_ERROR(Service_FS, "Can't instantiate SharedExtSaveData archive with path %s", | 554 | LOG_ERROR(Service_FS, "Can't instantiate SharedExtSaveData archive with path %s", |
| 555 | sharedextsavedata_factory->GetMountPoint().c_str()); | 555 | sharedextsavedata_factory->GetMountPoint().c_str()); |
| 556 | 556 | ||
| 557 | // Create the SaveDataCheck archive, basically a small variation of the RomFS archive | 557 | // Create the NCCH archive, basically a small variation of the RomFS archive |
| 558 | auto savedatacheck_factory = | 558 | auto savedatacheck_factory = std::make_unique<FileSys::ArchiveFactory_NCCH>(nand_directory); |
| 559 | std::make_unique<FileSys::ArchiveFactory_SaveDataCheck>(nand_directory); | 559 | RegisterArchiveType(std::move(savedatacheck_factory), ArchiveIdCode::NCCH); |
| 560 | RegisterArchiveType(std::move(savedatacheck_factory), ArchiveIdCode::SaveDataCheck); | ||
| 561 | 560 | ||
| 562 | auto systemsavedata_factory = | 561 | auto systemsavedata_factory = |
| 563 | std::make_unique<FileSys::ArchiveFactory_SystemSaveData>(nand_directory); | 562 | std::make_unique<FileSys::ArchiveFactory_SystemSaveData>(nand_directory); |
diff --git a/src/core/hle/service/fs/archive.h b/src/core/hle/service/fs/archive.h index 41a76285c..21ed9717b 100644 --- a/src/core/hle/service/fs/archive.h +++ b/src/core/hle/service/fs/archive.h | |||
| @@ -33,7 +33,7 @@ enum class ArchiveIdCode : u32 { | |||
| 33 | SystemSaveData = 0x00000008, | 33 | SystemSaveData = 0x00000008, |
| 34 | SDMC = 0x00000009, | 34 | SDMC = 0x00000009, |
| 35 | SDMCWriteOnly = 0x0000000A, | 35 | SDMCWriteOnly = 0x0000000A, |
| 36 | SaveDataCheck = 0x2345678A, | 36 | NCCH = 0x2345678A, |
| 37 | }; | 37 | }; |
| 38 | 38 | ||
| 39 | /// Media types for the archives | 39 | /// Media types for the archives |