Closed MonsterDruide1 closed 3 years ago
Yeah, I noticed recently that this is a mistake on my part in the original sead because they used memcmp in sead.
The reason I made that mistake is due to confusion as I was also reverse-engineering nw::lyt at the time.
nw::lyt::ArcExtractor::PrepareArchive()
is an exact match of sead::SharcArchiveRes::prepareArchive_()
(Nintendo copying code between NintendoWare and sead again), except for a single difference which is that nw used strncmp, whereas sead used memcmp.
To support
clang-3.9.1
for building Super Mario Odyssey,C++17
features have to be dropped. Here, this results in one major change: Asstring_view
gets unusable, the signatures of blocks inmodules/src/resource/seadSharcArchiveRes.cpp
can't be checked using that. Instead,std::strncmp
is used then.This change is