From 030f9577d6c3f1ea9faa445bfa736d0f3fc08fdb Mon Sep 17 00:00:00 2001 From: Swicegood Date: Mon, 5 Apr 2021 21:24:57 -0400 Subject: [PATCH] Make it work with Dirs that have spaces --- WASM/pge2wasm.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WASM/pge2wasm.bat b/WASM/pge2wasm.bat index 6b77424..b292211 100644 --- a/WASM/pge2wasm.bat +++ b/WASM/pge2wasm.bat @@ -55,9 +55,9 @@ goto :error :graball echo Gathering *.cpp files from - echo %CD% + echo "%CD%" set CPP= - for %%x in (%CD%\*.cpp) do set CPP=!CPP! %%x + for %%x in ("%CD%"\*.cpp) do set CPP=!CPP! %%x set CPP=%CPP:~1% :embuild @@ -65,10 +65,10 @@ goto :error echo %CPP% if exist "./assets" ( echo Starting Build with assets... - call em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 %CPP% -o .\WASM\pge.html -I %OLCPGE% --preload-file .\assets + call em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 "%CPP%" -o .\WASM\pge.html -I %OLCPGE% --preload-file .\assets ) else ( echo Starting Build without assets... - call em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 %CPP% -o .\WASM\pge.html -I %OLCPGE% + call em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 "%CPP%" -o .\WASM\pge.html -I %OLCPGE% ) echo Build Completed