mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Add 'readonly' field to love.filesystem.getInfo's returned table
This commit is contained in:
@@ -485,6 +485,9 @@ int w_getInfo(lua_State *L)
|
||||
lua_pushstring(L, typestr);
|
||||
lua_setfield(L, -2, "type");
|
||||
|
||||
luax_pushboolean(L, info.readonly);
|
||||
lua_setfield(L, -2, "readonly");
|
||||
|
||||
// Lua numbers (doubles) can't fit the full range of 64 bit ints.
|
||||
info.size = std::min<int64>(info.size, 0x20000000000000LL);
|
||||
if (info.size >= 0)
|
||||
|
||||
Reference in New Issue
Block a user