mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user