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

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

No files matched your search

+8 -2
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;