Releases: magcius/TTYDSaveHacker
Empty Saves
Edit: March 23, 2025: The V3 files in this release were updated to fix possible issues with cache-clearing code.
Added V3 of the REL Loader, in which its specifications are as follows:
- Loads the REL at the start of main, so the REL's prolog function is effectively running before any of the game's main code (aside from startup code from __start) has ran.
- Uses fixed linking, so it is assumed that the REL will never be unloaded/unlinked from memory.
- The REL is placed at the start of the Arena Lo, and after its prolog function has ran it is assumed that everything after the current Arena Lo can be used by the game for other stuff.
- Assumes that the Arena Hi has not been modified by the REL's prolog function (and anything that it calls) and as such resets it to its original value before the REL's prolog function was called.
- Subtracts the REL's used size (how much is used from the Arena Lo, which includes the REL itself and anything that it allocates from the Arena Lo) from the size of the main heap, which ensures that all of the other game's heap will be given the same amount of memory as the vanilla game.
- Cannot use __memAlloc and __memFree for allocating/freeing memory allocations in the REL's prolog function (and anything that it calls), as the game's main heaps have not been created yet.
- If a REL is already loaded and the REL Loader v3 file is loaded again, then the game will reboot and the REL will be unloaded from memory. Upon doing this, reloading the REL Loader v3 file is required to load the REL again.
- Not recommended for most mods due to not being compatible with mods set up for V1/V2 (unless they are updated to support all REL Loader versions), and all older mods use V1/V2.
The files contained in this release have file 4 set up with the REL Loader file, while the other 3 files are empty. The REL Loader file can be copied to a different slot if desired.
Empty Saves
Added V2 of the REL Loader, which uses fixed linking and reduces memory fragmentation. The original version of the REL Loader has been labeled V1, and has been updated to check the memory card for errors and attempt to fix them at game boot.
The files contained in this release have file 4 set up with the REL Loader file, while the other 3 files are empty. The REL Loader file can be copied to a different slot if desired.
Empty Saves
The files contained in this release have file 4 set up with the REL Loader file, while the other 3 files are empty. The REL Loader file can be copied to a different slot if desired.