You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
@echo off
|
|
setlocal
|
|
|
|
if /i "%1" == "-game" goto CleanGameDir
|
|
|
|
rem Clean out platform
|
|
if exist ..\..\..\game\platform\shaders rd /s /q ..\..\..\game\platform\shaders
|
|
goto CleanOtherStuff
|
|
|
|
:CleanGameDir
|
|
set __GameDir=%~2
|
|
if not exist "%__GameDir%\gameinfo.txt" goto MissingGameInfo
|
|
if exist "%__GameDir%\shaders" rd /s /q "%2\shaders"
|
|
goto CleanOtherStuff
|
|
|
|
:CleanOtherStuff
|
|
if exist debug_dx9 rd /s /q debug_dx9
|
|
|
|
if exist fxctmp9 rd /s /q fxctmp9
|
|
if exist vshtmp9 rd /s /q vshtmp9
|
|
if exist pshtmp9 rd /s /q pshtmp9
|
|
|
|
if exist fxctmp9_tmp rd /s /q fxctmp9_tmp
|
|
if exist vshtmp9_tmp rd /s /q vshtmp9_tmp
|
|
if exist pshtmp9_tmp rd /s /q pshtmp9_tmp
|
|
|
|
if exist fxctmp9_360 rd /s /q fxctmp9_360
|
|
if exist vshtmp9_360 rd /s /q vshtmp9_360
|
|
if exist pshtmp9_360 rd /s /q pshtmp9_360
|
|
|
|
if exist fxctmp9_360_tmp rd /s /q fxctmp9_360_tmp
|
|
if exist vshtmp9_360_tmp rd /s /q vshtmp9_360_tmp
|
|
if exist pshtmp9_360_tmp rd /s /q pshtmp9_360_tmp
|
|
|
|
if exist fxctmp9_ps3 rd /s /q fxctmp9_ps3
|
|
if exist vshtmp9_ps3 rd /s /q vshtmp9_ps3
|
|
if exist pshtmp9_ps3 rd /s /q pshtmp9_ps3
|
|
|
|
if exist fxctmp9_ps3_tmp rd /s /q fxctmp9_ps3_tmp
|
|
if exist vshtmp9_ps3_tmp rd /s /q vshtmp9_ps3_tmp
|
|
if exist pshtmp9_ps3_tmp rd /s /q pshtmp9_ps3_tmp
|
|
|
|
if exist shaders rd /s /q shaders
|
|
goto end
|
|
|
|
:MissingGameInfo
|
|
echo Invalid -game parameter specified (no "%__GameDir%\gameinfo.txt" exists).
|
|
goto end
|
|
|
|
|
|
:end
|