This patch rewrites the game's save file handling by using DMA for saving and loading, leading to the most efficient handling. As a bonus, it also frees up the 141 bytes of RAM at $7E:1F49. However, you should probably apply this patch after you use Lunar Magic to modify any of the level's level flags on the overworld -- LM doesn't take into account the fact that $1F49 is never being used anymore.
Read the readme for information on including an address to be saved to SRAM/BWRAM.
This version now allows addresses to have default values.
The BWRAM is included because due to the nature of the sa-1 rom, SRAM doesn't exist, so use that instead of SRAM on a sa-1 rom, not SRAM.
Was already fixed in the original submission.
Also because the actual patch included here didn't even have the fix. nice