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

Fix multiple addons in .teaa form using overload

git-svn-id: http://svn.net-core.org/repos/t-engine4@4837 51575b47-30f0-44d4-a5cc-537603b46e54
parent 365e5655
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ long_name = "Tales of Maj'Eyal: Age of Ascendancy"
short_name = "tome"
author = { "DarkGod", "darkgod@te4.org" }
homepage = "http://tome.te4.org/"
version = {3,9,38}
version = {3,9,37}
engine = {0,9,38,"te4"}
description = [[
Welcome to Maj'Eyal.
......
......@@ -18,11 +18,20 @@ static char *__BIND_PHYSFS_toDependent(dvoid *opaque, const char *name, const ch
{
char *f = __PHYSFS_platformCvtToDependent((char *)opaque, name, NULL);
// printf("== %s [%s] ::: %s\n", name, opaque, f);
// if ((strlen(d) > strlen(dname)) && strncmp(d+strlen(dname), dname, strlen(dname))) return;
// Forbid recursions
if (!strncmp(name, opaque+1, strlen(opaque+1)))
{
return NULL;
}
// Forbid recursions
else if (strstr(name+strlen(opaque), opaque))
{
// printf("FORBID: %s [%s] => %s\n", name, opaque, f);
return NULL;
}
else
{
char *f = __PHYSFS_platformCvtToDependent((char *)opaque, name, NULL);
......@@ -129,7 +138,6 @@ static void BIND_PHYSFS_enumerateFiles(dvoid *opaque, const char *dname,
const char *origdir, void *callbackdata)
{
char *d = __BIND_PHYSFS_toDependent((char *)opaque, dname, NULL);
if (d != NULL)
{
PHYSFS_enumerateFilesCallback(d, cb, callbackdata);
......
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