mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Don't canonicalize paths fom SDL file dialog callbacks.
If love.filesystem.openNativeFile can't open them, then it's SDL issue, not LOVE. This is also needed because Android returns content:// URIs instead of regular paths.
This commit is contained in:
@@ -1525,12 +1525,7 @@ static void SDLCALL fileDialogCallbackSDL(void *userdata, const char *const *fil
|
||||
{
|
||||
// SDL's file list only lasts until the end of the callback, so we copy it.
|
||||
for (int i = 0; filelist[i] != nullptr; i++)
|
||||
{
|
||||
std::string file(filelist[i]);
|
||||
if (fs != nullptr)
|
||||
file = fs->canonicalizeRealPath(file);
|
||||
state->files.push_back(file);
|
||||
}
|
||||
state->files.push_back(filelist[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user