mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Allow merged games marked as 'release' to have their save dir directly in the appdata dir
This commit is contained in:
@@ -52,6 +52,14 @@ namespace physfs
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_setRelease(lua_State * L)
|
||||
{
|
||||
// no error checking needed, everything, even nothing
|
||||
// can be converted to a boolean
|
||||
instance->setRelease(lua_toboolean(L, 1));
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_setIdentity(lua_State * L)
|
||||
{
|
||||
const char * arg = luaL_checkstring(L, 1);
|
||||
@@ -290,6 +298,7 @@ namespace physfs
|
||||
// List of functions to wrap.
|
||||
static const luaL_Reg functions[] = {
|
||||
{ "init", w_init },
|
||||
{ "setRelease", w_setRelease },
|
||||
{ "setIdentity", w_setIdentity },
|
||||
{ "setSource", w_setSource },
|
||||
{ "newFile", w_newFile },
|
||||
|
||||
Reference in New Issue
Block a user