summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorphysick <mynameisgennadiy@vk.com>2026-07-28 01:00:54 +0500
committerphysick <mynameisgennadiy@vk.com>2026-07-28 01:00:54 +0500
commit26957338e8b42df4ad18ab38f08c70fba4c14bb4 (patch)
treebce84b3ef7656937f8577b4a60611fb6e1e50220 /src
parent6d02a213770715d5093bd8a7c6619735d9a05963 (diff)
build info
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f9653e7..837c3d5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,6 +3,10 @@
#include "scenes/scenes.h"
#include "resources/resources.h"
+#ifndef BUILD_VERSION
+#define BUILD_VERSION "build UNTRACKED"
+#endif // BUILD_VERSION
+
int main(void) {
if (!InitSceneStack()) {
printf("Failed to create a scene stack\n");
@@ -32,6 +36,7 @@ int main(void) {
BeginDrawing();
DrawScene();
DrawFPS(0, 0);
+ DrawText(BUILD_VERSION, 0, GetScreenHeight() - 20, 20, COLORSCHEME_BROWN);
EndDrawing();
}