Properly detect SMDH magic.

This commit is contained in:
jakcron
2022-03-13 08:42:10 +08:00
parent 70f253152d
commit c57a691c2f
+1 -1
View File
@@ -537,7 +537,7 @@ void ctrtool::SettingsInitializer::determine_filetype()
infile.filetype = FILE_TYPE_ROMFS;
}
else if (_ASSERT_FILE_SIZE(sizeof(ntd::n3ds::SystemMenuDataHeader))
&& _TYPE_PTR(ntd::n3ds::SystemMenuDataHeader)->struct_magic.unwrap() == sizeof(ntd::n3ds::SystemMenuDataHeader::kStructMagic))
&& _TYPE_PTR(ntd::n3ds::SystemMenuDataHeader)->struct_magic.unwrap() == ntd::n3ds::SystemMenuDataHeader::kStructMagic)
{
infile.filetype = FILE_TYPE_SMDH;
}