u3: print errors while deleting snapshot patch

This commit is contained in:
Joe Bryan 2022-11-14 23:18:43 -05:00
parent 284addf159
commit 58805b8cef

View File

@ -433,10 +433,16 @@ _ce_patch_delete(void)
c3_c ful_c[8193]; c3_c ful_c[8193];
snprintf(ful_c, 8192, "%s/.urb/chk/control.bin", u3P.dir_c); snprintf(ful_c, 8192, "%s/.urb/chk/control.bin", u3P.dir_c);
c3_unlink(ful_c); if ( unlink(ful_c) ) {
fprintf(stderr, "loom: failed to delete control.bin: %s\r\n",
strerror(errno));
}
snprintf(ful_c, 8192, "%s/.urb/chk/memory.bin", u3P.dir_c); snprintf(ful_c, 8192, "%s/.urb/chk/memory.bin", u3P.dir_c);
c3_unlink(ful_c); if ( unlink(ful_c) ) {
fprintf(stderr, "loom: failed to remove memory.bin: %s\r\n",
strerror(errno));
}
} }
/* _ce_patch_verify(): check patch data mug. /* _ce_patch_verify(): check patch data mug.