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

@@ -1,7 +1,7 @@
#ifndef _SDL_GAMECONTROLLERDB_H_
#define _SDL_GAMECONTROLLERDB_H_
// Taken from https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/refs/heads/master/gamecontrollerdb.txt on Fri May 8 11:02:47 PM EDT 2026
// Taken from https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/refs/heads/master/gamecontrollerdb.txt on Fri May 8 11:47:47 PM EDT 2026
#define AKGL_SDL_GAMECONTROLLER_DB_LEN 2227

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];