Skip to content

Load metadata without LoadFile() on startup#5817

Merged
Malkierian merged 3 commits intoHarbourMasters:developfrom
Malkierian:no-load-meta
Nov 14, 2025
Merged

Load metadata without LoadFile() on startup#5817
Malkierian merged 3 commits intoHarbourMasters:developfrom
Malkierian:no-load-meta

Conversation

@Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Sep 26, 2025

This decouples file metadata loading from the LoadFile flow, thus allowing for the saveBlock and gSaveContext to be untouched on startup and resets. As this completely avoids both of those now, some testing to make sure there aren't unintended consequences of having zeroed data for both of those before slot loading is probably warranted.

This also implements the fileType field in the save block, which is then used to determine old randomizer status rather than checking all the vanilla block fields. The new StartupCheckAndInitMeta() function, which is called in the Sram_Init() chain, also now houses that and the build version checks.

Build Artifacts

@Malkierian Malkierian merged commit 1e1a47c into HarbourMasters:develop Nov 14, 2025
6 checks passed
@Malkierian Malkierian deleted the no-load-meta branch November 14, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant