mirror of
https://github.com/ihaveamac/custom-install.git
synced 2025-12-08 05:34:58 +00:00
finalize/source/main.c: unlink cifinish.bin after reading entries
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <3ds.h>
|
#include <3ds.h>
|
||||||
|
|
||||||
#include "basetik_bin.h"
|
#include "basetik_bin.h"
|
||||||
@@ -96,6 +97,8 @@ void finalize_install(void)
|
|||||||
entries = calloc(header.title_count, sizeof(struct finish_db_entry));
|
entries = calloc(header.title_count, sizeof(struct finish_db_entry));
|
||||||
fread(entries, sizeof(struct finish_db_entry), header.title_count, fp);
|
fread(entries, sizeof(struct finish_db_entry), header.title_count, fp);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
printf("Deleting %s...\n", CIFINISH_PATH);
|
||||||
|
unlink(CIFINISH_PATH);
|
||||||
|
|
||||||
for (int i = 0; i < header.title_count; ++i)
|
for (int i = 0; i < header.title_count; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user