Skip to content

Commit

Permalink
Add lua access to get replay pause boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 6, 2018
1 parent 51631df commit ec6c99b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/GameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2358,6 +2358,11 @@ class LunaGameState : public Luna<GameState>
{
p->updateDiscordPresence(SArg(1), SArg(2), SArg(3), IArg(4));
return 1;
}
static int IsPaused(T* p, lua_State* L)
{
lua_pushboolean(L, p->GetPaused());
return 1;
}

DEFINE_METHOD(GetEtternaVersion, GetEtternaVersion())
Expand Down Expand Up @@ -2459,7 +2464,8 @@ class LunaGameState : public Luna<GameState>
ADD_METHOD(CountNotesSeparately);
ADD_METHOD(GetCoinMode);
ADD_METHOD(UpdateDiscordMenu);
ADD_METHOD(UpdateDiscordPresence);
ADD_METHOD(UpdateDiscordPresence);
ADD_METHOD(IsPaused);
}
};

Expand Down

0 comments on commit ec6c99b

Please sign in to comment.