mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-24 00:14:16 +00:00
archive_ncch: add open source mii archive
This commit is contained in:
parent
acaca4188e
commit
36ae10f555
2 changed files with 6143 additions and 3 deletions
6139
externals/open_source_archives/include/mii.app.romfs.h
vendored
Normal file
6139
externals/open_source_archives/include/mii.app.romfs.h
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
@ -22,6 +22,7 @@
|
||||||
#include "core/hle/service/fs/archive.h"
|
#include "core/hle/service/fs/archive.h"
|
||||||
#include "core/loader/loader.h"
|
#include "core/loader/loader.h"
|
||||||
#include "country_list.app.romfs.h"
|
#include "country_list.app.romfs.h"
|
||||||
|
#include "mii.app.romfs.h"
|
||||||
#include "shared_font.app.romfs.h"
|
#include "shared_font.app.romfs.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -130,9 +131,9 @@ ResultVal<std::unique_ptr<FileBackend>> NCCHArchive::OpenFile(const Path& path,
|
||||||
std::vector<u8> archive_data;
|
std::vector<u8> archive_data;
|
||||||
if (high == shared_data_archive) {
|
if (high == shared_data_archive) {
|
||||||
if (low == mii_data) {
|
if (low == mii_data) {
|
||||||
LOG_ERROR(Service_FS, "Failed to get a handle for shared data archive: Mii Data.");
|
LOG_WARNING(Service_FS,
|
||||||
Core::System::GetInstance().SetStatus(Core::System::ResultStatus::ErrorSystemFiles,
|
"Mii data file missing. Loading open source replacement from memory");
|
||||||
"Mii Data");
|
archive_data = std::vector<u8>(std::begin(MII_DATA), std::end(MII_DATA));
|
||||||
} else if (low == region_manifest) {
|
} else if (low == region_manifest) {
|
||||||
LOG_WARNING(
|
LOG_WARNING(
|
||||||
Service_FS,
|
Service_FS,
|
||||||
|
|
Loading…
Reference in a new issue