Add CSGO configuration

This commit is contained in:
Mylloon 2023-03-26 17:26:30 +02:00
parent 31277968a2
commit 136f089cc4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,20 +1,24 @@
# Version control
VC = git
VC = git
# Util
RM = rm -f
RM = rm -f
# Downloaders
WGET = wget -q --show-progress
CURL = curl -s
WGET = wget -q --show-progress
CURL = curl -s
# Checkers
ARCH = $(shell grep -c "archlinux" /proc/version)
WSL = $(shell grep -c "WSL2" /proc/version)
ARCH = $(shell grep -c "archlinux" /proc/version)
WSL = $(shell grep -c "WSL2" /proc/version)
# Hide some verbose messages from Make
MAKEFLAGS += --no-print-directory
# Location
PFx86 = /mnt/c/Program\ Files\ \(x86\)
CSGO = $(PFx86)/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/csgo/cfg
all: full-sync
# Pull latest changes
@ -118,6 +122,15 @@ else ifeq ($(WSL), 1)
# Unison
@mkdir -p $(HOME)/.unison
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.unison/default.prf -O $(HOME)/.unison/default.prf
# Windows
# CSGO
@if [ -d $(CSGO) ]; then \
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/autoexec.cfg -O $(CSGO)/autoexec.cfg; \
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/myconfig.cfg -O $(CSGO)/myconfig.cfg; \
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/customgame.cfg -O $(CSGO)/customgame.cfg; \
$(foreach d,$(filter-out "userdata",$(shell find $(PFx86)/Steam/userdata -maxdepth 1 -type d -printf "\"%f\" ")), $(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/video.txt -O $(PFx86)/Steam/userdata/$(d)/730/local/cfg/video.txt;) \
fi
endif
# END