Improved emscripten support + some minor refactor.

This commit is contained in:
Martín Lucas Golini
2020-08-30 17:38:33 -03:00
parent f3e1720bc2
commit 6861c5e795
19 changed files with 153 additions and 46 deletions

View File

@@ -770,7 +770,7 @@ void App::initGlobalSearchBar() {
std::string search( mGlobalSearchInput->getText().toUtf8() );
ProjectSearch::findHorspool(
mDirTree->getFiles(), search,
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN || defined(__EMSCRIPTEN_PTHREADS__)
mThreadPool,
#endif
[&, clock, search, loader]( const ProjectSearch::Result& res ) {