Updating the save mechanism by creating an intermediary SaveData struct (#472)

* Make save changes their own branch

* Make SaveData tags char[] instead of u32[]

* Make Game and Options data saving independent

* removed unused functions

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* mark save sections as valid only after they are actually written to SRAM

* fix comparison between different integer types

* Implement some suggestions from @ricfehr3

* Add extensive documentation on the structure of the savefile

* fix doxygen doc generation

* fix it again

---------

Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Geralt
2026-05-10 12:39:54 -07:00
committed by GitHub
co-authored by Copilot Autofix powered by AI MathisMartin31
parent 6373fee144
commit a79c4c92e2
5 changed files with 290 additions and 37 deletions
+2
View File
@@ -6,6 +6,7 @@
#include "gbalatro_sys8.h"
#include "graphic_utils.h"
#include "joker.h"
#include "save.h"
#include "sprite.h"
#include <maxmod.h>
@@ -85,6 +86,7 @@ void init()
// Initialize subsystems
mmInitDefault((mm_addr)soundbank_bin, GBAL_MM_NUM_CHANNELS);
load_options();
affine_background_init();
sprite_init();
card_init();