uchristo wrote:Hi there!
I'm quite unsure whether questions are allowed in this special Thread....
To make it short: I'm from the other side
I'm mainly using the MiniMig AGA Core. I'd like to expand the firmware to safe the configured ADF-Images as well as. Unfortunately, I'm stuck and need help.
What I did:
Expand the configTYPE to include an Array of 4 fileTYPE for storing the loaded Images.
In menu.c, right before the call of InsertFloppy, I save file to the the respective Slot in my config-Array.
I expanded ApplyConfiguration() in config.c to insert my Floppy-Images from the Array into the active drives. I therefore added a function InsertFloppyByName() which indeed only writes the supplied fileTYPE to the global fileTYPE <file> and afterwards calls InsertFloppy with the respective drive....I included my files (unfortunately included the compiled Object-Files, please ignore them), can you point me to my error?
I guess, the problem has something to do with the use of fileTYPE which may be unique on each boot. I'd rather use the path of the image to point to the files, but was unable to isolate the path from SelectFile (due to insufficient intelligence).
Had a quick look, but I'm not sure exactly what you are after or what the code is supposed to do.
What are you planning to do with the file names, and would it be enough to save the name of the last loaded file? (which could be generic beyond the AGA core)