summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-12-06 15:49:15 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-12-06 15:49:15 -0500
commit0a9b08fcaf0fde28af66b59a76881032587b582c (patch)
tree6fda392cd47fdd7560fcfd7c1f5d0f5f4f702630 /src
parent04c97b83505e685d590c28c7605128716f3333ff (diff)
track executable path
Diffstat (limited to 'src')
-rw-r--r--src/game-settings.hpp1
-rw-r--r--src/game.cpp3
-rw-r--r--src/game.hpp2
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();