From d87e2acfceb02eecf09ba40ee3131b7c534cf9d5 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 28 Sep 2023 11:56:51 +0200 Subject: [PATCH] csgo -> cs2 --- Makefile | 13 ++++++------- games/{csgo => cs2}/autoexec.cfg | 2 +- games/{csgo => cs2}/customgame.cfg | 2 +- games/{csgo => cs2}/myconfig.cfg | 2 +- games/csgo/video.txt | 25 ------------------------- 5 files changed, 9 insertions(+), 35 deletions(-) rename games/{csgo => cs2}/autoexec.cfg (97%) rename games/{csgo => cs2}/customgame.cfg (96%) rename games/{csgo => cs2}/myconfig.cfg (97%) delete mode 100644 games/csgo/video.txt diff --git a/Makefile b/Makefile index bbd422e..69df5a3 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ PFx86 = /mnt/c/Program\ Files\ \(x86\) WIN_HOME = /mnt/c/Users/$(WIN_USER) APPDATA = $(WIN_HOME)/AppData/Roaming WIN_STEAM_USERDATA = $(filter-out "userdata",$(shell find $(PFx86)/Steam/userdata -maxdepth 1 -type d -printf "\"%f\" ")) -CSGO_CFG = $(PFx86)/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/csgo/cfg +CS2_CFG = $(PFx86)/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/game/csgo/cfg all: full-sync @@ -135,12 +135,11 @@ sync-windows: @echo "(Windows) Scripts synced!" @echo -# CSGO (only if installed) - @if [ -d $(CSGO_CFG) ]; then \ - $(WGET) $(REPO_SRC)/games/csgo/autoexec.cfg -O $(CSGO_CFG)/autoexec.cfg; \ - $(WGET) $(REPO_SRC)/games/csgo/myconfig.cfg -O $(CSGO_CFG)/myconfig.cfg; \ - $(WGET) $(REPO_SRC)/games/csgo/customgame.cfg -O $(CSGO_CFG)/customgame.cfg; \ - $(foreach d,$(WIN_STEAM_USERDATA), $(WGET) $(REPO_SRC)/games/csgo/video.txt -O $(PFx86)/Steam/userdata/$(d)/730/local/cfg/video.txt;) \ +# CS2 (only if installed) + @if [ -d $(CS2_CFG) ]; then \ + $(WGET) $(REPO_SRC)/games/cs2/autoexec.cfg -O $(CS2_CFG)/autoexec.cfg; \ + $(WGET) $(REPO_SRC)/games/cs2/myconfig.cfg -O $(CS2_CFG)/myconfig.cfg; \ + $(WGET) $(REPO_SRC)/games/cs2/customgame.cfg -O $(CS2_CFG)/customgame.cfg; \ echo "(Windows) CS:GO synced!"; \ echo; \ fi diff --git a/games/csgo/autoexec.cfg b/games/cs2/autoexec.cfg similarity index 97% rename from games/csgo/autoexec.cfg rename to games/cs2/autoexec.cfg index 5a17ea4..25c9ce7 100644 --- a/games/csgo/autoexec.cfg +++ b/games/cs2/autoexec.cfg @@ -1,5 +1,5 @@ // Update this script, run this in cmd: -// PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/autoexec.cfg -OutFile '%ProgramFiles(x86)%\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\autoexec.cfg'" +// PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/autoexec.cfg -OutFile '%ProgramFiles(x86)%\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\autoexec.cfg'" // Load custom config exec myconfig diff --git a/games/csgo/customgame.cfg b/games/cs2/customgame.cfg similarity index 96% rename from games/csgo/customgame.cfg rename to games/cs2/customgame.cfg index 6b12f31..c9689d9 100644 --- a/games/csgo/customgame.cfg +++ b/games/cs2/customgame.cfg @@ -1,5 +1,5 @@ // Update this script, run this in cmd: -// PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/customgame.cfg -OutFile '%ProgramFiles(x86)%\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\customgame.cfg'" +// PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/customgame.cfg -OutFile '%ProgramFiles(x86)%\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\customgame.cfg'" // Allow cheats sv_cheats "1" diff --git a/games/csgo/myconfig.cfg b/games/cs2/myconfig.cfg similarity index 97% rename from games/csgo/myconfig.cfg rename to games/cs2/myconfig.cfg index c36d020..84a5d4b 100644 --- a/games/csgo/myconfig.cfg +++ b/games/cs2/myconfig.cfg @@ -1,5 +1,5 @@ // Update this script, run this in cmd: -// PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/myconfig.cfg -OutFile '%ProgramFiles(x86)%\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\myconfig.cfg'" +// PowerShell -Command "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/myconfig.cfg -OutFile '%ProgramFiles(x86)%\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\myconfig.cfg'" // Deplacements unbind "z" diff --git a/games/csgo/video.txt b/games/csgo/video.txt deleted file mode 100644 index ec506b2..0000000 --- a/games/csgo/video.txt +++ /dev/null @@ -1,25 +0,0 @@ -"VideoConfig" -{ - "setting.cpu_level" "0" - "setting.gpu_level" "3" - "setting.mat_antialias" "2" - "setting.mat_aaquality" "0" - "setting.mat_forceaniso" "4" - "setting.mat_vsync" "0" - "setting.mat_triplebuffered" "0" - "setting.mat_grain_scale_override" "-1.000000" - "setting.gpu_mem_level" "2" - "setting.mem_level" "2" - "setting.mat_queue_mode" "-1" - "setting.csm_quality_level" "3" - "setting.mat_software_aa_strength" "0" - "setting.mat_motion_blur_enabled" "0" - "setting.mat_texturestreaming" "0" - "setting.r_player_visibility_mode" "1" - "setauto.mat_enable_uber_shaders" "1" - "setting.defaultres" "1920" - "setting.defaultresheight" "1080" - "setting.aspectratiomode" "0" - "setting.fullscreen" "0" - "setting.nowindowborder" "1" -}