[client] rework the start/restart logic to use an enum

This commit is contained in:
Geoffrey McRae
2020-08-11 15:14:58 +10:00
parent 76e119f8ad
commit e3f97e384b
3 changed files with 48 additions and 44 deletions

View File

@@ -29,10 +29,16 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "spice/spice.h"
#include <lgmp/client.h>
enum RunState
{
APP_STATE_RUNNING,
APP_STATE_RESTART,
APP_STATE_SHUTDOWN
};
struct AppState
{
bool running;
bool restart;
enum RunState state;
bool ignoreInput;
bool escapeActive;
SDL_Scancode escapeAction;