Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/AboutScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ class AboutScreen {
void main();
};

#endif
#endif

14 changes: 8 additions & 6 deletions include/Menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ class Menu {
PROCESS_INFORMATION m_processInfo;
// Unsigned int to store exit info
DWORD m_exitCode;
// Holds the game path of selected game
LPCSTR m_gamePath;
// Holds the executable of selected game
LPSTR m_gameExe;
// Holds the game directory of selected game
LPCSTR m_gameDir;
// m_handle for game window.
HWND m_handle;
#else
Expand Down Expand Up @@ -79,6 +73,14 @@ class Menu {

// Determines when game has started.
bool m_gameStarted = false;
// True from launch attempt until confirmed running or failed.
bool m_launching = false;
// Timestamp (ms) when m_inGame was set — used to detect crashes.
unsigned int m_launchTime = 0;
// Holds error message to display after launch failure or crash.
std::string m_launchError = "";
// Exit code of last game process (0 = normal, non-zero = crash).
int m_lastExitCode = 0;
// Starting position of button x.
const int m_posX = 700;
// Position of button y.
Expand Down
3 changes: 2 additions & 1 deletion include/Option.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
#define ARCADE_MACHINE_OPTION_H

#include "AboutScreen.h"
#include "Configuration.h"
#include "splashkit.h"
#include <string>
#include "GridLayout.h"
#include "Button.h"
#include "ArcadeMachine.h"
#include "Selector.h"
#include "OptionsScreenButton.h"
#include "Audio.h"
Expand Down Expand Up @@ -34,6 +34,7 @@ class Option

public:
Option();
~Option();

void createOptionsButtons();
void drawOptionsMenu();
Expand Down
3 changes: 2 additions & 1 deletion include/Process.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <unistd.h>

pid_t spawnProcess(std::string directory, std::string fileName);
bool processRunning(pid_t processId);
bool processRunning(pid_t processId, int &exitCode);
void killProcess(pid_t processId);

#endif
Loading