finalize/source/main.c: unlink cifinish.bin after reading entries

This commit is contained in:
Ian Burgwin
2020-01-24 05:44:25 -08:00
parent 9955699045
commit 2f0fc5d177

View File

@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <3ds.h>
#include "basetik_bin.h"
@@ -96,6 +97,8 @@ void finalize_install(void)
entries = calloc(header.title_count, sizeof(struct finish_db_entry));
fread(entries, sizeof(struct finish_db_entry), header.title_count, fp);
fclose(fp);
printf("Deleting %s...\n", CIFINISH_PATH);
unlink(CIFINISH_PATH);
for (int i = 0; i < header.title_count; ++i)
{