mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
fixing jar so it compiles on vs2010
This commit is contained in:
parent
65fbd60f50
commit
e252f7eb4d
3
engine/external/jar/jar_mod.h
vendored
3
engine/external/jar/jar_mod.h
vendored
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user