Counter Strike : Global Offensive Source Code
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.

50 lines
1.3 KiB

  1. @echo off
  2. setlocal
  3. if /i "%1" == "-game" goto CleanGameDir
  4. rem Clean out platform
  5. if exist ..\..\..\game\platform\shaders rd /s /q ..\..\..\game\platform\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_tmp rd /s /q fxctmp9_tmp
  18. if exist vshtmp9_tmp rd /s /q vshtmp9_tmp
  19. if exist pshtmp9_tmp rd /s /q pshtmp9_tmp
  20. if exist fxctmp9_360 rd /s /q fxctmp9_360
  21. if exist vshtmp9_360 rd /s /q vshtmp9_360
  22. if exist pshtmp9_360 rd /s /q pshtmp9_360
  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 fxctmp9_ps3 rd /s /q fxctmp9_ps3
  27. if exist vshtmp9_ps3 rd /s /q vshtmp9_ps3
  28. if exist pshtmp9_ps3 rd /s /q pshtmp9_ps3
  29. if exist fxctmp9_ps3_tmp rd /s /q fxctmp9_ps3_tmp
  30. if exist vshtmp9_ps3_tmp rd /s /q vshtmp9_ps3_tmp
  31. if exist pshtmp9_ps3_tmp rd /s /q pshtmp9_ps3_tmp
  32. if exist shaders rd /s /q shaders
  33. goto end
  34. :MissingGameInfo
  35. echo Invalid -game parameter specified (no "%__GameDir%\gameinfo.txt" exists).
  36. goto end
  37. :end