still not a good solution ... what happens if 2 games have the same file name for the save? ALL savegames are saved in the same directory \saves\amiga1200\whdl\whdloadgame\ - without subdirectories. I have seen this with bubblebobble and wings (same directory).
You yourself mention the topic of network sharing ... That's exactly what I use when I have different systems to play my games. That's why this is my next topic - migration from SD->Networkshare. A WinUAE or a fs_uae under Linux have no chance to enjoy savegames etc. here. What I play in the Recalbox stays in the Recalbox ... great What else do I use a network share for ... flexibility
But you could check in the script whether the .lha is writable - if not -> savegame directory. If writable -> into the .lha. Or use the option in the settings "Save in .lha or savegames".
But if this doesn't get into Recalbox (I assume...), I would like to build it in - and maybe one or the other is also interested in more flexible Amiga games ;). The question would therefore be how I can realise the whole thing myself. Somewhere in the configgen files for Amiberry it must be possible to build it in. Unfortunately, I haven't quite understood the system yet - I'm still puzzling
And yes - the problem actually continues with other Recalbox systems - I play on Recalbox 1 - use a network drive - bad luck if I want to continue playing something under Windows ... Actually, the highscore/savegame file belongs at least in the same directory as the actual game (with Arcade it does not go into the same ROM because of the checksum which is then broken). In my opinion, this is a design error that ties you extremely to a system ...