anchor.diff:  	if %errorlevel%==2 call :download_basisu
   	if %errorlevel%==3 call :build_basisu
   	if %errorlevel%==4 call :deploy_basisu
  -	if %errorlevel%==5 start "" %devenv_cmd% "3rdparty\basisu\lumix\vs2019\basis_lumix.sln"
  +	if %errorlevel%==5 start "" %devenv_cmd% "3rdparty\basisu\lumix\vs2022\basis_lumix.sln"
   	pause
   goto :basisu
   
  
positive.code: exit /B 0
  
  :build_recast
  	genie.exe --file=recastnavigation.lua vs2019
  	%msbuild_cmd% 3rdparty\recast\_project\RecastDetour.sln /p:Configuration=Release /p:Platform=x64
  exit /B 0
  
  :create_project
  	echo Creating project...
  	genie.exe --with-app vs2019 
  	pause
  exit /B 0
  
  :build
  	if not exist "tmp/vs2019/LumixEngine.sln" call :create_project
  	echo Building...
  	%msbuild_cmd% tmp/vs2019/LumixEngine.sln /p:Configuration=RelWithDebInfo
  	pause
  exit /B 0
  
  :run_studio
  	if not exist "tmp/vs2019/bin/RelWithDebInfo/studio.exe" call :build
  	cd ..\data
  	start "" "../projects/tmp/vs2019/bin/RelWithDebInfo/studio.exe"
  	cd ..\projects
  	pause
  exit /B 0
  
  :open_in_vs
  	start "" %devenv_cmd% "tmp/vs2019/LumixEngine.sln"
  exit /B 0
  
  :create_bundle
  	echo Creating bundle...
  	genie.exe --embed-resources --static-physx vs2019
  	cd ..\data
  	tar -cvf data.tar .
  	move data.tar ../src/studio
  	cd ..\projects\
  	%msbuild_cmd% tmp/vs2019/LumixEngine.sln /p:Configuration=RelWithDebInfo
  	del ..\src\studio\data.tar
  	pause
  exit /B 0
  
negative.code: :deploy_basisu
  	echo %CD%
  	del /Q ..\external\basisu\lib\win64_vs2017\release\*
  	xcopy /E /Y "3rdparty\basisu\lumix\vs2022\bin\*.*" ..\external\basisu\lib\win64_vs2017\release\
  	del /Q ..\external\basisu\include\*
  	xcopy /E /Y "3rdparty\basisu\transcoder\*.h" ..\external\basisu\include\transcoder
  	xcopy /E /Y "3rdparty\basisu\encoder\*.h" ..\external\basisu\include\encoder
  