Skip to content
Snippets Groups Projects
Commit d6f84eed authored by dg's avatar dg
Browse files

ahah

git-svn-id: http://svn.net-core.org/repos/t-engine4@6457 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0280eed1
No related branches found
No related tags found
No related merge requests found
......@@ -385,14 +385,6 @@ function _M:loadAddons(mod, saveuse)
else fs.mount(base.."/hooks", "/hooks/"..add.short_name, true)
end
print("==== all path")
table.print(fs.getSearchPath(true))
print("==== hooks")
table.print(fs.list("/hooks"))
print("==== addon hooks")
table.print(fs.list("/hooks/"..add.short_name))
print("====")
self:setCurrentHookDir("/hooks/"..add.short_name.."/")
dofile("/hooks/"..add.short_name.."/load.lua")
self:setCurrentHookDir(nil)
......
......@@ -114,7 +114,6 @@ static void *SUBZIP_openArchive(const char *name, int forWriting)
int i = 0;
while (name != realfile) info->subdir[i++] = *(name++);
info->subdir[i] = '\0';
printf("SUBZIP: openArchive: %s : %s : %lx\n", base, info->subdir, opaque);
return info;
} /* SUBZIP_openArchive */
......@@ -135,7 +134,6 @@ char *append_assets(const char *subdir, const char *name)
memcpy(patched_name, subdir, sub_len);
memcpy(patched_name + sub_len, name, name_len);
patched_name[sub_len + name_len + 1 - 1] = 0;
printf("SUBZIP: append_assets: %s : %s :=> %s\n", subdir, name, patched_name);
return patched_name;
}
......@@ -247,7 +245,6 @@ static fvoid *SUBZIP_openRead(dvoid *opaque, const char *fnm, int *fileExists)
char *patched_name = append_assets(((SUBZIPinfo*)opaque)->subdir, fnm);
retval = __PHYSFS_Archiver_ZIP.openRead(((SUBZIPinfo*)opaque)->subopaque, patched_name, fileExists);
printf("SUBZIP: openRead: %lx : %s : %d\n", ((SUBZIPinfo*)opaque)->subopaque, patched_name, retval);
allocator.Free(patched_name);
......
......@@ -102,11 +102,11 @@ static const PHYSFS_ArchiveInfo *supported_types[] =
static const PHYSFS_Archiver *archivers[] =
{
&__PHYSFS_Archiver_BIND_PHYSFS,
&__PHYSFS_Archiver_DIR,
#if (defined PHYSFS_SUPPORTS_ZIP)
&__PHYSFS_Archiver_SUBZIP,
&__PHYSFS_Archiver_ZIP,
#endif
&__PHYSFS_Archiver_DIR,
#if (defined PHYSFS_SUPPORTS_7Z)
&__PHYSFS_Archiver_LZMA,
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment