@kas1e
I wouldn't want to go as far as saying it comes from *anywhere*.
It's either ASL or ScummVM and i'm suspecting something.
Take a look at lines 56-58 from
https://github.com/scummvm/scummvm/tre ... /backends/dialogs/amigaos
if (ConfMan.hasKey("browser_lastpath")) {
strncpy(pathBuffer, ConfMan.get("browser_lastpath").c_str(), sizeof(pathBuffer) - 1);
}
If i understand that correctly it will *read* the
browser_lastpath variable (if found?) and add it as a default path to the ASL path input field in line 68, correct?
strncpy(pathBuffer, fr->fr_Drawer, sizeof(pathBuffer));
If that is correct then, in this special scenario, there is no
browser_lastpath variable set (because we are missing the scummvm.ini file that normally provides it)
So, it should not find/use that variable...but it seems it still does...or it's not using it, fails to set a default path and still continues to read random memory...maybe because of the
pathBuffer not being initialized?
Now to know how to set a default
pathBuffer...any ideas?
Is it sufficient to do something like this:
pathBuffer = 'SYS:';
in line 53?
Thank you