Fix SMDH Header being cleared

And erasing the Magic in the process
This commit is contained in:
Reisen Usagi 2016-06-09 15:50:07 -03:00
parent 7ad39a23f3
commit 24288b4ec6

View file

@ -441,7 +441,13 @@ int cmd_process_command(int argc, char* argv[]) {
}
SMDH smdh;
memset(&smdh, 0, sizeof(SMDH));
// Are These really needed? The values are coded in 3ds/smdh.h
// So remove them if unnecessary
memset(&smdh.titles, 0, sizeof(SMDHTitle) * 0x10);
memset(&smdh.settings, 0, sizeof(SMDHSettings));
memset(&smdh.smallIcon, 0, 0x480);
memset(&smdh.largeIcon, 0, 0x1200);
std::vector<std::string> regions = cmd_parse_list(cmd_find_arg(args, "r", "regions", "regionfree"));
for(std::vector<std::string>::iterator it = regions.begin(); it != regions.end(); it++) {
@ -536,4 +542,4 @@ int cmd_process_command(int argc, char* argv[]) {
cmd_invalid_command(command);
return -1;
}
}
}