summaryrefslogtreecommitdiff
path: root/src/app.h
diff options
context:
space:
mode:
authorMenase Teshale <osome3717@gmail.com>2026-09-19 16:06:47 +0300
committerMenase Teshale <osome3717@gmail.com>2026-09-19 16:06:47 +0300
commit6a2705f073114a7b4227c92a3c8a89e47985f547 (patch)
treefffe1dfff3312c3b4273e3a57ecd60d7c2b250be /src/app.h
parentaf1e4f1d6c47498a590bd64428163a6b9dbca385 (diff)
Fixed file path issue on windows
Diffstat (limited to 'src/app.h')
-rw-r--r--src/app.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.h b/src/app.h
index c7101ae..488f681 100644
--- a/src/app.h
+++ b/src/app.h
@@ -4,6 +4,12 @@
#include <SDL3/SDL.h>
#include <SDL3_mixer/SDL_mixer.h>
+#ifndef SDL_PLATFORM_WINDOWS
+#define DIRSEP "/"
+#else
+#define DIRSEP "\\"
+#endif
+
typedef enum {
menu_state,
game_state