summaryrefslogtreecommitdiff
path: root/mm/src/code
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2025-01-02 16:57:46 -0600
committerGarrett Cox <garrettjcox@gmail.com>2025-01-02 16:57:57 -0600
commit70281f35599807e63c81c4e78d7d39706da797d5 (patch)
treece45ab8c542424397c763679ba9227eb2e46f355 /mm/src/code
parent9df889eba0bed8119f4262b035b3eb6ef13b1e41 (diff)
Add additional build info, ensure saves are marked as incompatible across versions
Diffstat (limited to 'mm/src/code')
-rw-r--r--mm/src/code/z_sram_NES.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/src/code/z_sram_NES.c b/mm/src/code/z_sram_NES.c
index 761e838b8..ddcf80a8e 100644
--- a/mm/src/code/z_sram_NES.c
+++ b/mm/src/code/z_sram_NES.c
@@ -4,6 +4,7 @@
#include "overlays/kaleido_scope/ovl_kaleido_scope/z_kaleido_scope.h"
#include <string.h>
#include "BenPort.h"
+#include "build.h"
#include "2s2h/GameInteractor/GameInteractor.h"
@@ -982,6 +983,8 @@ void Sram_InitNewSave(void) {
// #region 2S2H
memcpy(&gSaveContext.save.shipSaveInfo.dpadEquips, &sSaveDefaultDpadItemEquips, sizeof(DpadSaveInfo));
gSaveContext.save.shipSaveInfo.pauseSaveEntrance = -1;
+ memcpy(&gSaveContext.save.shipSaveInfo.commitHash, &gGitCommitHash,
+ sizeof(gSaveContext.save.shipSaveInfo.commitHash));
gSaveContext.save.shipSaveInfo.saveType = SAVETYPE_VANILLA;
// #endregion