浏览代码

use strstr instead of TextFindIndex

pull/4764/head
mannikim 1 个月前
父节点
当前提交
53520536b5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/rcore.c

+ 2
- 2
src/rcore.c 查看文件

@ -3696,7 +3696,7 @@ static void ScanDirectoryFiles(const char *basePath, FilePathList *files, const
}
else
{
if (TextFindIndex(filter, DIRECTORY_FILTER_TAG) >= 0)
if (strstr(filter, DIRECTORY_FILTER_TAG) != NULL)
{
strcpy(files->paths[files->count], path);
files->count++;
@ -3762,7 +3762,7 @@ static void ScanDirectoryFilesRecursively(const char *basePath, FilePathList *fi
}
else
{
if ((filter != NULL) && (TextFindIndex(filter, DIRECTORY_FILTER_TAG) >= 0))
if ((filter != NULL) && (strstr(filter, DIRECTORY_FILTER_TAG) != NULL))
{
strcpy(files->paths[files->count], path);
files->count++;

正在加载...
取消
保存