libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
10.14k stars 1.85k forks source link

`SDL_ShowOpenFileDialog` immediately changes working directory to the directory being browsed #11519

Open AntTheAlchemist opened 19 hours ago

AntTheAlchemist commented 19 hours ago

For example on Windows, SDL_LoadFile (if no path is specified) will look in the directory .exe was run. But, upon calling SDL_ShowOpenFileDialog, SDL_LoadFile (and probably others; but I haven't tested) looks in the directory currently being browsed by the dialog. I don't think this is intended behaviour.

slouken commented 3 hours ago

No, this is not intended.

Semphriss commented 3 hours ago

9406 was meant to fix this; I'll give it a try on my Windows whenever I can.