Do not delete personalized tickets

This commit is contained in:
Naim2000 2024-03-01 10:13:36 -05:00
parent 18f2e3f07f
commit 289a1cee79
1 changed files with 8 additions and 0 deletions

View File

@ -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;