love.filesystem.isFile and isDirectory behave consistently between PhysFS 2.0 and 2.1/3.0 (see issue #641).

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-08-06 00:53:49 -03:00
parent 9b6aa777ad
commit 7566db14f2
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ int w_newImageData(lua_State *L)
t->release();
return 1;
}
else if (filesystem::luax_cangetfiledata(L, 1) || luax_istype(L, 1, Data::type)) // Case 2: File(Data).
else if (filesystem::luax_cangetdata(L, 1)) // Case 2: File(Data).
{
Data *data = love::filesystem::luax_getdata(L, 1);