Add love.event.restart(optionalvalue) as a shorthand for love.event.quit("restart", optionalvalue). If a Lua value is provided as an argument, a new love.restart field will contain the value after restarting.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2019-12-28 22:43:39 -05:00
parent 443250ffd5
commit b001b2e1d5
6 changed files with 65 additions and 20 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ public:
Type getType() const { return type; }
const Data &getData() const { return data; }
static Variant fromLua(lua_State *L, int n, std::set<const void*> *tableSet = nullptr);
static Variant fromLua(lua_State *L, int n, bool allowuserdata = true, std::set<const void*> *tableSet = nullptr);
void toLua(lua_State *L) const;
private: