forked from FAForever/nomads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shader_cleaner.bat
36 lines (33 loc) · 1.43 KB
/
shader_cleaner.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
echo ==============================================================
echo Supreme Commander Forged Alliance - Cached shader clean up
echo ==============================================================
echo.
echo.
echo Forged Alliance caches shader files. Modifications to the
echo shader files are not (always) detected. This causes the game
echo to freeze as soon as the modified shader routines are used.
echo To fix this use this utility to delete the cached shader files
echo and force Forged Alliance to recache the shaders. This fixes
echo the problems.
echo.
echo Be sure to exit Forged Alliance before using this utility.
echo.
echo Hit the "y" button followed by the enter button to delete the
echo cache files. Any other action exits without deleting the files.
echo.
set /p OK=##
echo.
if "%OK%"=="y" (
echo Deleting files...
del /F /Q "%LOCALAPPDATA%\Gas Powered Games\Supreme Commander Forged Alliance\cache\mesh.1.5.*" >nul 2>&1
del /F /Q "%HOMEPATH%\Local Settings\Application Data\Gas Powered Games\Supreme Commander Forged Alliance\cache\mesh.1.5.*" >nul 2>&1
del /F /Q "%LOCALAPPDATA%\Gas Powered Games\Supreme Commander Forged Alliance\cache\mesh.1.6.*" >nul 2>&1
del /F /Q "%HOMEPATH%\Local Settings\Application Data\Gas Powered Games\Supreme Commander Forged Alliance\cache\mesh.1.6.*" >nul 2>&1
echo Done
) else (
echo Nothing deleted...
)
echo.
echo Exiting automatically in 15 seconds.
ping -n 15 127.0.0.1 >nul