mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added love.joystick.loadGamepadMappings (resolves issue #842), and Joystick:saveGamepadMapping.
The latter returns a mapping string, and the former loads a newline-separated list of mapping strings.
This commit is contained in:
@@ -172,7 +172,7 @@ int w_newImage(lua_State *L)
|
||||
if (image == nullptr)
|
||||
return luaL_error(L, "Cannot load images without the love.image module.");
|
||||
|
||||
love::filesystem::FileData *fdata = love::filesystem::luax_getFileData(L, 1);
|
||||
love::filesystem::FileData *fdata = love::filesystem::luax_getfiledata(L, 1);
|
||||
|
||||
if (image->isCompressed(fdata))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user