[hatari-devel] Issue with current directory in file selector
Eero Tamminen
eerot at users.berlios.de
Sun Jan 31 22:59:26 CET 2010
Hi,
On Sunday 31 January 2010, Konador, Cyprian wrote:
> I faced an issue with file selector under Windows (I'm not sure about
> other systems). That issue appears when I press Browse button in TOS
> setup / Floppy disk menu. When I press Browse and choose floppy disk
> image first time, I see proper directory (defined as "Default floppy
> images directory"). When I press Browse second time, I see Hatari home
> folder. I observed the same behaviour, for TOS setup.
>
> I found out that function File_SplitPath in file.c returns wrong path.
> E.g. C:\Hatari\Floppy\Nosta.msa is splitted (in function
> SDLGui_FileSelect) as follow: path: C:\Hatari\Floppy\
> fname: Nosta.msa
>
> but should be:
> path: C:\Hatari\Floppy
> fname: Nosta.msa
>
> Attached you can find path for that issue.
Thanks for the patch! Sorry that I didn't have time to check it this
weekend.
Please test also all the buttons at the top of the file selector (".." etc)
and whether selecting a disk image from inside a ZIP archive works also with
your patch.
(I'll try to do that myself on Linux during next week.)
- Eero
More information about the hatari-devel
mailing list