emscripten build improvements.

This commit is contained in:
Martín Lucas Golini
2022-06-08 02:19:01 -03:00
parent bbecb4cc1b
commit a30c82089f
4 changed files with 25 additions and 7 deletions

View File

@@ -2767,6 +2767,8 @@ void App::init( std::string file, const Float& pidelDensity, const std::string&
FileSystem::dirAddSlashAtEnd( mResPath );
mIsBundledApp = true;
}
#elif EE_PLATFORM == EE_PLATFORM_EMSCRIPTEN
mResPath += "ecode/";
#endif
mResPath += "assets";
FileSystem::dirAddSlashAtEnd( mResPath );