3.0.1 hotfix backport (#328)

* Filter newline and carriage returns when dumping themes

* Backup badges if no badges found
This commit is contained in:
Alex Taber
2024-06-17 20:30:14 -04:00
committed by GitHub
parent 11113bbc07
commit 3ef2092dc2
3 changed files with 81 additions and 3 deletions

View File

@@ -512,7 +512,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)
{