Skip to content

Commit 43cc814

Browse files
authored
Add macro definition AX_NO_DUP_SEARCH_PATH (#874)
1 parent 1263d05 commit 43cc814

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/platform/CCFileUtils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ void FileUtils::addSearchPath(std::string_view searchpath, const bool front)
928928
path += "/";
929929
}
930930

931+
#ifdef AX_NO_DUP_SEARCH_PATH
931932
auto it = std::find(_searchPathArray.begin(), _searchPathArray.end(), path);
932933
if (it != _searchPathArray.end())
933934
{
@@ -939,6 +940,7 @@ void FileUtils::addSearchPath(std::string_view searchpath, const bool front)
939940
_originalSearchPaths.erase(itOrigin);
940941
}
941942
}
943+
#endif // AX_NO_DUP_SEARCH_PATH
942944

943945
if (front)
944946
{

0 commit comments

Comments
 (0)