From d90c021648cc89ac0e049b3460d4e72168aa99de Mon Sep 17 00:00:00 2001 From: BroGamer <64546358+BroGamer4256@users.noreply.github.com> Date: Sat, 17 Sep 2022 13:31:14 +1200 Subject: [PATCH] Fix extension --- src/dllmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dllmain.c b/src/dllmain.c index c96040a..e37cbec 100644 --- a/src/dllmain.c +++ b/src/dllmain.c @@ -266,7 +266,7 @@ i32 __stdcall DllMain (HMODULE mod, DWORD cause, void *ctx) { toml_free (config); } - FILE *cards = fopen (configPath ("cards.bin"), "r"); + FILE *cards = fopen (configPath ("cards.dat"), "r"); if (cards) { fread (accessCode1, 1, 20, cards); fread (chipId1, 1, 20, cards); @@ -274,7 +274,7 @@ i32 __stdcall DllMain (HMODULE mod, DWORD cause, void *ctx) { fread (chipId2, 1, 32, cards); fclose (cards); } else { - FILE *cards_new = fopen (configPath ("cards.bin"), "w"); + FILE *cards_new = fopen (configPath ("cards.dat"), "w"); if (cards_new) { srand (time (0)); sprintf (accessCode1, "%020d", generate_rand ());