Backup badges if no badges found

This commit is contained in:
2024-06-17 18:57:26 -04:00
parent a8cc3ebfc3
commit 0a23b20f6e
2 changed files with 80 additions and 2 deletions

View File

@@ -504,7 +504,8 @@ void remake_file(FS_Path path, FS_Archive archive, u32 size)
FSFILE_Close(handle);
FSUSER_DeleteFile(archive, path);
}
FSUSER_CreateFile(archive, path, 0, size);
Result res = FSUSER_CreateFile(archive, path, 0, size);
DEBUG("Remake file res: 0x%08lx\n", res);
char * buf = calloc(size, 1);
if (buf == NULL)
{