Quote:
Originally Posted by Asman
Try this. I use it and it works like charm.
|
Thanks Asman
--
I always thought of an alternative and even if dangerous, a possibility came to my mind..
You cannot write in predefined sectors because of ADOS (file update outside game, disk validating, etc), but there is a zone ever usable and protected: bootblock.
So main idea is use some spare space of the bootblock for the hiscore (better if encrypted
), update bb checksum and use a lowlevel trackwriter.
Just an alternative thinking
EDIT: hmm, I reread what losso written, actually he did not specify on which device the save in needed.
Well, logically my unconventional idea is valid only for floppy.
For other devices, like phx suggested (delay all write operations until your program is about to return, like WHDLoad does), can be acceptable.
Anyone expects to be able to return to the workbench from an hdd installed game, so they require and use a proper exit.