From e252f7eb4d57d05dd24277e645bccf31e8f9c4d1 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 20 Apr 2025 16:01:56 +0900 Subject: [PATCH] fixing jar so it compiles on vs2010 --- engine/external/jar/jar_mod.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/external/jar/jar_mod.h b/engine/external/jar/jar_mod.h index 10238fa..8a02f30 100644 --- a/engine/external/jar/jar_mod.h +++ b/engine/external/jar/jar_mod.h @@ -1317,12 +1317,13 @@ void jar_mod_unload(jar_mod_context_t* modctx) { mulong jar_mod_load_file(jar_mod_context_t* modctx, const char* filename) { mulong fsize = 0; + FILE* f; if(modctx->modfile) { JARMOD_FREE(modctx->modfile); modctx->modfile = 0; } - FILE* f = fopen(filename, "rb"); + f = fopen(filename, "rb"); if(f) { fseek(f, 0, SEEK_END); fsize = ftell(f);