source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

FindFirstEx and FindFirst on Linux cannot find anything with '*_' wildcard

Open MissingNoGuy55 opened this issue 2 months ago • 1 comments

On Linux, there seems to be an issue related to wildcards and finding files in general.

The following code will always fail on Linux, even with GAME set:

FileFindHandle_t hTest = FILESYSTEM_INVALID_FIND_HANDLE;
const char* pszTest = filesystem->FindFirstEx( "*_dir.vpk", "MOD", &hTest );

Msg("Wildcard test: %s\n", pszTest );

However, omitting the _ in the wildcard will make it work. This is not a problem on Windows it seems. Tested on Debian 12 and 13.

MissingNoGuy55 avatar Nov 08 '25 22:11 MissingNoGuy55

This also happens on EndeavourOS from my testing

DecalOverdose avatar Nov 24 '25 06:11 DecalOverdose