Add CSGO configuration
This commit is contained in:
parent
31277968a2
commit
136f089cc4
1 changed files with 19 additions and 6 deletions
13
Makefile
13
Makefile
|
@ -15,6 +15,10 @@ WSL = $(shell grep -c "WSL2" /proc/version)
|
||||||
# Hide some verbose messages from Make
|
# Hide some verbose messages from Make
|
||||||
MAKEFLAGS += --no-print-directory
|
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
|
all: full-sync
|
||||||
|
|
||||||
# Pull latest changes
|
# Pull latest changes
|
||||||
|
@ -118,6 +122,15 @@ else ifeq ($(WSL), 1)
|
||||||
# Unison
|
# Unison
|
||||||
@mkdir -p $(HOME)/.unison
|
@mkdir -p $(HOME)/.unison
|
||||||
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.unison/default.prf -O $(HOME)/.unison/default.prf
|
@$(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
|
endif
|
||||||
|
|
||||||
# END
|
# END
|
||||||
|
|
Loading…
Reference in a new issue