mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Fix game image installs to SD
Yes, I broke this (again)
This commit is contained in:
parent
ce498103e1
commit
3aa9a1633a
@ -1413,6 +1413,7 @@ u32 InstallCiaSystemData(CiaStub* cia, const char* drv) {
|
|||||||
// build the cmd
|
// build the cmd
|
||||||
cmd = BuildAllocCmdData(tmd);
|
cmd = BuildAllocCmdData(tmd);
|
||||||
if (!cmd) return 1;
|
if (!cmd) return 1;
|
||||||
|
if (!syscmd) cmd->unknown = 0xFFFFFFFE; // mark this as custom built
|
||||||
|
|
||||||
// generate all the paths
|
// generate all the paths
|
||||||
snprintf(path_titledb, 32, "%2.2s/dbs/title.db",
|
snprintf(path_titledb, 32, "%2.2s/dbs/title.db",
|
||||||
@ -1497,10 +1498,7 @@ u32 InstallCiaSystemData(CiaStub* cia, const char* drv) {
|
|||||||
InitImgFS(path_bak);
|
InitImgFS(path_bak);
|
||||||
|
|
||||||
// fix CMACs where required
|
// fix CMACs where required
|
||||||
if (!syscmd) {
|
if (!syscmd) FixFileCmac(path_cmd, true);
|
||||||
cmd->unknown = 0xFFFFFFFE; // mark this as custom built
|
|
||||||
FixFileCmac(path_cmd, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user