Team Fortress 2 Source Code as on 22/4/2020
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.

42 lines
1.0 KiB

  1. @echo off
  2. setlocal
  3. if /i "%1" == "-game" goto CleanGameDir
  4. rem Clean out hl2
  5. if exist ..\..\..\game\hl2\shaders rd /s /q ..\..\..\game\hl2\shaders
  6. goto CleanOtherStuff
  7. :CleanGameDir
  8. set __GameDir=%~2
  9. if not exist "%__GameDir%\gameinfo.txt" goto MissingGameInfo
  10. if exist "%__GameDir%\shaders" rd /s /q "%2\shaders"
  11. goto CleanOtherStuff
  12. :CleanOtherStuff
  13. if exist debug_dx9 rd /s /q debug_dx9
  14. if exist fxctmp9 rd /s /q fxctmp9
  15. if exist vshtmp9 rd /s /q vshtmp9
  16. if exist pshtmp9 rd /s /q pshtmp9
  17. if exist fxctmp9_360 rd /s /q fxctmp9_360
  18. if exist vshtmp9_360 rd /s /q vshtmp9_360
  19. if exist pshtmp9_360 rd /s /q pshtmp9_360
  20. if exist fxctmp9_tmp rd /s /q fxctmp9_tmp
  21. if exist vshtmp9_tmp rd /s /q vshtmp9_tmp
  22. if exist pshtmp9_tmp rd /s /q pshtmp9_tmp
  23. if exist fxctmp9_360_tmp rd /s /q fxctmp9_360_tmp
  24. if exist vshtmp9_360_tmp rd /s /q vshtmp9_360_tmp
  25. if exist pshtmp9_360_tmp rd /s /q pshtmp9_360_tmp
  26. if exist shaders rd /s /q shaders
  27. goto end
  28. :MissingGameInfo
  29. echo Invalid -game parameter specified (no "%__GameDir%\gameinfo.txt" exists).
  30. goto end
  31. :end