mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Improved output for game install last step
This commit is contained in:
parent
e568348086
commit
77f1f94e13
@ -1401,7 +1401,7 @@ u32 InstallCiaSystemData(CiaStub* cia, const char* drv) {
|
|||||||
drv, tid_high, tid_low);
|
drv, tid_high, tid_low);
|
||||||
|
|
||||||
// progress update
|
// progress update
|
||||||
if (!ShowProgress(1, 5, "TMD/CMD/TiE/Ticket/Save")) return 1;
|
if (!ShowProgress(1, 5, "TMD/CMD")) return 1;
|
||||||
|
|
||||||
// copy tmd & cmd
|
// copy tmd & cmd
|
||||||
fvx_rmkpath(path_tmd);
|
fvx_rmkpath(path_tmd);
|
||||||
@ -1415,7 +1415,7 @@ u32 InstallCiaSystemData(CiaStub* cia, const char* drv) {
|
|||||||
free(cmd); // we don't need this anymore
|
free(cmd); // we don't need this anymore
|
||||||
|
|
||||||
// progress update
|
// progress update
|
||||||
if (!ShowProgress(2, 5, "TMD/CMD/TiE/Ticket/Save")) return 1;
|
if (!ShowProgress(2, 5, "Savegame")) return 1;
|
||||||
|
|
||||||
// generate savedata
|
// generate savedata
|
||||||
if (exthdr && (exthdr->savedata_size)) {
|
if (exthdr && (exthdr->savedata_size)) {
|
||||||
@ -1454,7 +1454,7 @@ u32 InstallCiaSystemData(CiaStub* cia, const char* drv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// progress update
|
// progress update
|
||||||
if (!ShowProgress(3, 5, "TMD/CMD/TiE/Ticket/Save")) return 1;
|
if (!ShowProgress(3, 5, "TitleDB update")) return 1;
|
||||||
|
|
||||||
// write ticket and title databases
|
// write ticket and title databases
|
||||||
// ensure remounting the old mount path
|
// ensure remounting the old mount path
|
||||||
@ -1462,16 +1462,6 @@ u32 InstallCiaSystemData(CiaStub* cia, const char* drv) {
|
|||||||
char* path_bak = NULL;
|
char* path_bak = NULL;
|
||||||
strncpy(path_store, GetMountPath(), 256);
|
strncpy(path_store, GetMountPath(), 256);
|
||||||
if (*path_store) path_bak = path_store;
|
if (*path_store) path_bak = path_store;
|
||||||
|
|
||||||
// ticket database
|
|
||||||
if (!InitImgFS(path_ticketdb) ||
|
|
||||||
((AddTicketToDB("D:/partitionA.bin", title_id, (Ticket*) ticket, true)) != 0)) {
|
|
||||||
InitImgFS(path_bak);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// progress update
|
|
||||||
if (!ShowProgress(4, 5, "TMD/CMD/TiE/Ticket/Save")) return 1;
|
|
||||||
|
|
||||||
// title database
|
// title database
|
||||||
if (!InitImgFS(path_titledb) ||
|
if (!InitImgFS(path_titledb) ||
|
||||||
@ -1480,6 +1470,16 @@ u32 InstallCiaSystemData(CiaStub* cia, const char* drv) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// progress update
|
||||||
|
if (!ShowProgress(4, 5, "TicketDB update")) return 1;
|
||||||
|
|
||||||
|
// ticket database
|
||||||
|
if (!InitImgFS(path_ticketdb) ||
|
||||||
|
((AddTicketToDB("D:/partitionA.bin", title_id, (Ticket*) ticket, true)) != 0)) {
|
||||||
|
InitImgFS(path_bak);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
// progress update
|
// progress update
|
||||||
if (!ShowProgress(5, 5, "TMD/CMD/TiE/Ticket/Save")) return 1;
|
if (!ShowProgress(5, 5, "TMD/CMD/TiE/Ticket/Save")) return 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user