Fixed uieditor emscripten build.

This commit is contained in:
Martín Lucas Golini
2022-06-08 02:44:58 -03:00
parent a30c82089f
commit bc30d35b91
2 changed files with 35 additions and 10 deletions

View File

@@ -3247,6 +3247,8 @@ void App::init( std::string file, const Float& pidelDensity, const std::string&
#if EE_PLATFORM == EE_PLATFORM_EMSCRIPTEN
std::vector<std::string> parseEmscriptenArgs( int argc, char* argv[] ) {
if ( argc < 1 )
return {};
std::vector<std::string> args;
args.emplace_back( argv[0] );
for ( int i = 1; i < argc; i++ ) {