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:
driAn
2007-12-22 23:39:30 +00:00
parent c3a95a3879
commit 7fa0a75765
12 changed files with 202 additions and 93 deletions
+2 -2
View File
@@ -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);