Allow merged games marked as 'release' to have their save dir directly in the appdata dir

This commit is contained in:
Bart van Strien
2011-06-15 13:09:32 +02:00
parent d613505a77
commit fc5cda36e2
6 changed files with 1918 additions and 1871 deletions
@@ -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 },