mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-19 22:21:04 +00:00
Use std::begin and std::end for system archives c array
This commit is contained in:
parent
8a2c44be56
commit
97fda30839
@ -122,8 +122,8 @@ ResultVal<std::unique_ptr<FileBackend>> NCCHArchive::OpenFile(const Path& path,
|
|||||||
LOG_WARNING(
|
LOG_WARNING(
|
||||||
Service_FS,
|
Service_FS,
|
||||||
"Shared Font file missing. Loading open source replacement from memory");
|
"Shared Font file missing. Loading open source replacement from memory");
|
||||||
std::vector<u8> shared_font_file;
|
const std::vector<u8> shared_font_file(std::begin(SHARED_FONT_DATA),
|
||||||
shared_font_file.assign(SHARED_FONT_DATA, SHARED_FONT_DATA + SHARED_FONT_DATA_len);
|
std::end(SHARED_FONT_DATA));
|
||||||
u64 romfs_offset = 0;
|
u64 romfs_offset = 0;
|
||||||
u64 romfs_size = shared_font_file.size();
|
u64 romfs_size = shared_font_file.size();
|
||||||
std::unique_ptr<DelayGenerator> delay_generator =
|
std::unique_ptr<DelayGenerator> delay_generator =
|
||||||
@ -137,9 +137,8 @@ ResultVal<std::unique_ptr<FileBackend>> NCCHArchive::OpenFile(const Path& path,
|
|||||||
LOG_WARNING(
|
LOG_WARNING(
|
||||||
Service_FS,
|
Service_FS,
|
||||||
"Bad Word List file missing. Loading open source replacement from memory");
|
"Bad Word List file missing. Loading open source replacement from memory");
|
||||||
std::vector<u8> bad_word_list_file;
|
const std::vector<u8> bad_word_list_file(std::begin(BAD_WORD_LIST_DATA),
|
||||||
bad_word_list_file.assign(BAD_WORD_LIST_DATA,
|
std::end(BAD_WORD_LIST_DATA));
|
||||||
BAD_WORD_LIST_DATA + BAD_WORD_LIST_DATA_len);
|
|
||||||
u64 romfs_offset = 0;
|
u64 romfs_offset = 0;
|
||||||
u64 romfs_size = bad_word_list_file.size();
|
u64 romfs_size = bad_word_list_file.size();
|
||||||
std::unique_ptr<DelayGenerator> delay_generator =
|
std::unique_ptr<DelayGenerator> delay_generator =
|
||||||
|
Loading…
Reference in New Issue
Block a user