mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +12:00
[NCCH] Implement country list
This commit is contained in:
parent
c6fed2641c
commit
c3f9f235a5
2 changed files with 18263 additions and 1 deletions
18260
include/fs/country_list..hpp
Normal file
18260
include/fs/country_list..hpp
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,5 @@
|
|||
#include "fs/archive_ncch.hpp"
|
||||
#include "fs/country_list..hpp"
|
||||
#include "fs/mii_data.hpp"
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
@ -85,7 +86,8 @@ std::optional<u32> NCCHArchive::readFile(FileSession* file, u64 offset, u32 size
|
|||
|
||||
if (highProgramID == sharedDataArchive) {
|
||||
if (lowProgramID == miiData) fileData = std::vector<u8>(std::begin(MII_DATA), std::end(MII_DATA));
|
||||
else Helpers::panic("[NCCH archive] Read unimplemented NAND file");
|
||||
else if (lowProgramID == regionManifest) fileData = std::vector<u8>(std::begin(COUNTRY_LIST_DATA), std::end(COUNTRY_LIST_DATA));
|
||||
else Helpers::panic("[NCCH archive] Read unimplemented NAND file. ID: %08X", lowProgramID);
|
||||
} else {
|
||||
Helpers::panic("[NCCH archive] Read from NAND but not the shared data archive");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue