diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-12-06 15:49:15 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-12-06 15:49:15 -0500 |
| commit | 0a9b08fcaf0fde28af66b59a76881032587b582c (patch) | |
| tree | 6fda392cd47fdd7560fcfd7c1f5d0f5f4f702630 /src | |
| parent | 04c97b83505e685d590c28c7605128716f3333ff (diff) | |
track executable path
Diffstat (limited to 'src')
| -rw-r--r-- | src/game-settings.hpp | 1 | ||||
| -rw-r--r-- | src/game.cpp | 3 | ||||
| -rw-r--r-- | src/game.hpp | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/game-settings.hpp b/src/game-settings.hpp index 3456725..7e1d31d 100644 --- a/src/game-settings.hpp +++ b/src/game-settings.hpp @@ -7,6 +7,7 @@ #include <cstdint> struct GameSettings { + const char *executablePath; bool isGameRunning = true; bool isGamePaused = false; bool isShowingEditor = true; diff --git a/src/game.cpp b/src/game.cpp index 96bc0a2..6fab5f4 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -493,7 +493,8 @@ void Game_Tick(double delta) { ECS_Tick_Late(delta); } -void Game_Main(PKEWindowProperties windowProps) { +void Game_Main(PKEWindowProperties windowProps, const char *executablePath) { + pkeSettings.executablePath = executablePath; fprintf(stdout, "Game_Main Entering\n"); try { AM_Init(); diff --git a/src/game.hpp b/src/game.hpp index 5697efa..e85e8ce 100644 --- a/src/game.hpp +++ b/src/game.hpp @@ -4,7 +4,7 @@ #include "game-settings.hpp" #include "window-types.hpp" -void Game_Main(PKEWindowProperties windowProps); +void Game_Main(PKEWindowProperties windowProps, const char *executablePath); void Game_Init(); void Game_Tick(double delta); void Game_Teardown(); |
