sendmap with map config files, script contexts (~sandbox)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1471 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -147,9 +147,9 @@ gzFile opengzfile(const char *filename, const char *mode)
|
||||
return gzopen(found, mode);
|
||||
}
|
||||
|
||||
char *loadfile(const char *fn, int *size)
|
||||
char *loadfile(const char *fn, int *size, const char *mode)
|
||||
{
|
||||
FILE *f = openfile(fn, "rb");
|
||||
FILE *f = openfile(fn, mode ? mode : "rb");
|
||||
if(!f) return NULL;
|
||||
fseek(f, 0, SEEK_END);
|
||||
int len = ftell(f);
|
||||
|
||||
Reference in New Issue
Block a user