mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-22 14:02:40 +02:00
Adjust crt0 for NROs
This commit is contained in:
parent
612b3a0451
commit
21986bbcfc
@ -163,8 +163,7 @@ int main(int argc, char* argv[]) {
|
|||||||
fwrite(buf[i], nro_hdr.Segments[i].Size, 1, out);
|
fwrite(buf[i], nro_hdr.Segments[i].Size, 1, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
fseek(out, 0, SEEK_SET);
|
fseek(out, sizeof(nro_start), SEEK_SET);
|
||||||
fwrite(&nro_start, sizeof(nro_start), 1, out);
|
|
||||||
fwrite(&nro_hdr, sizeof(nro_hdr), 1, out);
|
fwrite(&nro_hdr, sizeof(nro_hdr), 1, out);
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user