Encode library version and game version into savegame files and check them both

This commit is contained in:
2026-05-08 23:48:35 -04:00
parent ff6b282112
commit 4c771227f5
3 changed files with 41 additions and 16 deletions

View File

@@ -6,8 +6,10 @@
#include <SDL3_mixer/SDL_mixer.h>
#include "tilemap.h"
#define AKGL_GAME_AUDIO_TRACK_BGM 1
#define AKGL_GAME_AUDIO_MAX_TRACKS 64
#define AKGL_VERSION "0.1.0"
#define AKGL_GAME_AUDIO_TRACK_BGM 1
#define AKGL_GAME_AUDIO_MAX_TRACKS 64
#define AKGL_TIME_ONESEC_NS 1000000000
#define AKGL_TIME_ONESEC_MS 1000000
@@ -25,6 +27,7 @@ typedef struct {
} akgl_GameState;
typedef struct {
char libversion[32];
char version[32];
char name[256];
char uri[256];