Removed a FIXME.
This commit is contained in:
parent
0d8bf3a129
commit
46125c95b3
|
@ -2229,10 +2229,7 @@ PHYSFS_File *PHYSFS_openRead(const char *_fname)
|
||||||
|
|
||||||
GOTO_IF_MACRO(!searchPath, PHYSFS_ERR_NO_SUCH_PATH, openReadEnd);
|
GOTO_IF_MACRO(!searchPath, PHYSFS_ERR_NO_SUCH_PATH, openReadEnd);
|
||||||
|
|
||||||
/* !!! FIXME: Why aren't we using a for loop here? */
|
for (i = searchPath; (i != NULL) && (!fileExists); i = i->next)
|
||||||
i = searchPath;
|
|
||||||
|
|
||||||
do
|
|
||||||
{
|
{
|
||||||
char *arcfname = fname;
|
char *arcfname = fname;
|
||||||
if (verifyPath(i, &arcfname, 0))
|
if (verifyPath(i, &arcfname, 0))
|
||||||
|
@ -2241,8 +2238,7 @@ PHYSFS_File *PHYSFS_openRead(const char *_fname)
|
||||||
if (io)
|
if (io)
|
||||||
break;
|
break;
|
||||||
} /* if */
|
} /* if */
|
||||||
i = i->next;
|
} /* for */
|
||||||
} while ((i != NULL) && (!fileExists));
|
|
||||||
|
|
||||||
/* !!! FIXME: may not set an error if openRead didn't fail. */
|
/* !!! FIXME: may not set an error if openRead didn't fail. */
|
||||||
GOTO_IF_MACRO(!io, ERRPASS, openReadEnd);
|
GOTO_IF_MACRO(!io, ERRPASS, openReadEnd);
|
||||||
|
|
Loading…
Reference in New Issue