mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51: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:
@@ -148,7 +148,7 @@ int w_newFile(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
FileData *luax_getFileData(lua_State *L, int idx)
|
||||
FileData *luax_getfiledata(lua_State *L, int idx)
|
||||
{
|
||||
FileData *data = nullptr;
|
||||
File *file = nullptr;
|
||||
@@ -191,7 +191,7 @@ int w_newFileData(lua_State *L)
|
||||
// Single argument: treat as filepath or File.
|
||||
if (lua_gettop(L) == 1)
|
||||
{
|
||||
// We don't use luax_getFileData because we want to use an ioError.
|
||||
// We don't use luax_getfiledata because we want to use an ioError.
|
||||
if (lua_isstring(L, 1))
|
||||
luax_convobj(L, 1, "filesystem", "newFile");
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace filesystem
|
||||
* so a matching release() is required!
|
||||
* May trigger a Lua error.
|
||||
**/
|
||||
FileData *luax_getFileData(lua_State *L, int idx);
|
||||
FileData *luax_getfiledata(lua_State *L, int idx);
|
||||
|
||||
bool hack_setupWriteDirectory();
|
||||
int w_init(lua_State *L);
|
||||
|
||||
Reference in New Issue
Block a user