mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2024-11-13 03:45:11 +01:00
Do not delete personalized tickets
This commit is contained in:
parent
18f2e3f07f
commit
289a1cee79
@ -1264,6 +1264,14 @@ s32 Wad_Uninstall(FILE *fp)
|
||||
/* Delete all tickets */
|
||||
for (cnt = 0; cnt < viewCnt; cnt++) {
|
||||
memcpy(&view, viewData + cnt, sizeof(tikview));
|
||||
|
||||
if (view.devicetype)
|
||||
{
|
||||
u32 deviceID = 0;
|
||||
/* If we failed to get the ID or it actually matches, skip this */
|
||||
if (ES_GetDeviceID(&deviceID) || view.devicetype == deviceID) continue;
|
||||
}
|
||||
|
||||
ret = ES_DeleteTicket(&view);
|
||||
if (ret < 0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user