Make STRUCT_VERSION internal

This commit is contained in:
Lior Halphon
2024-11-16 17:16:58 +02:00
parent 0b5be876b3
commit f1f97f0692
2 changed files with 4 additions and 2 deletions

View File

@@ -1676,7 +1676,7 @@ static void GB_reset_internal(GB_gameboy_t *gb, bool quick)
memset(gb, 0, GB_SECTION_OFFSET(unsaved));
memcpy(GB_GET_SECTION(gb, rtc), rtc_section, sizeof(rtc_section));
gb->model = model;
gb->version = GB_STRUCT_VERSION;
gb->version = STRUCT_VERSION;
GB_reset_mbc(gb);

View File

@@ -42,7 +42,9 @@ extern "C" {
#include "workboy.h"
#include "random.h"
#define GB_STRUCT_VERSION 15
#ifdef GB_INTERNAL
#define STRUCT_VERSION 15
#endif
#define GB_REWIND_FRAMES_PER_KEY 255