mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Merge pull request #1967 from axblk/fix/editor_fileselector
Fix editor file-selector
This commit is contained in:
commit
de4ffee556
|
@ -3031,7 +3031,7 @@ static int EditorListdirCallback(const char *pName, int IsDir, int StorageType,
|
||||||
}
|
}
|
||||||
if(str_comp(pName, ".") == 0
|
if(str_comp(pName, ".") == 0
|
||||||
|| (str_comp(pName, "..") == 0 && (str_comp(pEditor->m_pFileDialogPath, "maps") == 0 || str_comp(pEditor->m_pFileDialogPath, "mapres") == 0))
|
|| (str_comp(pName, "..") == 0 && (str_comp(pEditor->m_pFileDialogPath, "maps") == 0 || str_comp(pEditor->m_pFileDialogPath, "mapres") == 0))
|
||||||
|| (pExt && !IsDir && str_endswith(pName, pExt)))
|
|| (pExt && !IsDir && !str_endswith(pName, pExt)))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue