mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-26 17:12:37 -06:00
Use std::begin and std::end for system archives c array
This commit is contained in:
parent
8a2c44be56
commit
97fda30839
1 changed files with 4 additions and 5 deletions
|
@ -122,8 +122,8 @@ ResultVal<std::unique_ptr<FileBackend>> NCCHArchive::OpenFile(const Path& path,
|
|||
LOG_WARNING(
|
||||
Service_FS,
|
||||
"Shared Font file missing. Loading open source replacement from memory");
|
||||
std::vector<u8> shared_font_file;
|
||||
shared_font_file.assign(SHARED_FONT_DATA, SHARED_FONT_DATA + SHARED_FONT_DATA_len);
|
||||
const std::vector<u8> shared_font_file(std::begin(SHARED_FONT_DATA),
|
||||
std::end(SHARED_FONT_DATA));
|
||||
u64 romfs_offset = 0;
|
||||
u64 romfs_size = shared_font_file.size();
|
||||
std::unique_ptr<DelayGenerator> delay_generator =
|
||||
|
@ -137,9 +137,8 @@ ResultVal<std::unique_ptr<FileBackend>> NCCHArchive::OpenFile(const Path& path,
|
|||
LOG_WARNING(
|
||||
Service_FS,
|
||||
"Bad Word List file missing. Loading open source replacement from memory");
|
||||
std::vector<u8> bad_word_list_file;
|
||||
bad_word_list_file.assign(BAD_WORD_LIST_DATA,
|
||||
BAD_WORD_LIST_DATA + BAD_WORD_LIST_DATA_len);
|
||||
const std::vector<u8> bad_word_list_file(std::begin(BAD_WORD_LIST_DATA),
|
||||
std::end(BAD_WORD_LIST_DATA));
|
||||
u64 romfs_offset = 0;
|
||||
u64 romfs_size = bad_word_list_file.size();
|
||||
std::unique_ptr<DelayGenerator> delay_generator =
|
||||
|
|
Loading…
Reference in a new issue