Move `setSearchPat` operation from cpp to script
Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3_fix
Merge pull request #6870 from samuele3hu/v3_fix

Move `setSearchPath` operation from cpp to script for lua-tests