This PR will focus on making gm9i better use the ramdrive it currently has. The main motivation is being able to use most of the features of gm9i in an envirionment where no storage is available (for example when used throught download and play on an DS).
For the moment what was changed is:
Always creating a ramdrive even in DS mode, it will use approximately 1MB of ram, so that it will be able to hold most of the saves
As long as a ramdrive is present, even if no other storage is mounted, the cart dump operations will still be doable and will instead write to the ramdrive.
The ramdrive DLDI driver was updated slightly to remove repeated code.
There are still various other things that have to be updated:
The ramdrive would be usable as dump target only when nothing else is available, while it could be useful to be able to directly dump carts there (for some reason), so a way to prompt the user what drive to use as destination would be needed. (This scenario is actually already an issue when both slot-1 and the microsd are available.)
With the current changes, storing saves to gba carts is broken, as the ramdrive will always be used.
Could be useful to compress the saves like it's done when writing to gba carts to save space in the ramdrive.
In ds mode, if a slot2 memory expansion cart is inserted and then removed, the ramdrive will be unmounted and no longer available.
In general, in the dump operations, when selecting an option, it should be checked if enough space is available on that storage.
This PR will focus on making gm9i better use the ramdrive it currently has. The main motivation is being able to use most of the features of gm9i in an envirionment where no storage is available (for example when used throught download and play on an DS). For the moment what was changed is:
There are still various other things that have to be updated: