[hatari-devel] Issue with current directory in file selector

Eero Tamminen eerot at users.berlios.de
Tue Feb 2 21:51:43 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.

Doesn't seem to happen on Linux.


> 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.

But as the patch doesn't make any harm, applied it (+ added Windows
HOMEPATH thing to paths.c):
	http://hg.berlios.de/repos/hatari/shortlog

Thanks for the patch!


	- Eero



More information about the hatari-devel mailing list