Misc changes

master
Taeyeon Mori 9 years ago
parent 263b93b392
commit be5caf8ff1
  1. 5
      bin/force-run-elf
  2. 13
      bin/prepare_steam
  3. 6
      bin/pulse-g930
  4. 3
      etc/prepare_steam.vdf

@ -1,3 +1,6 @@
#!/bin/sh #!/bin/sh
/lib/ld-linux-x86-64.so.2 "$1" # XXX: only works if .interp is numbered < 10 (readelf output is retarded to parse because of the [<nr>] with space padding)
INTERP=`readelf -SW "$1" | grep .interp | awk '{print "dd if='$1' of=/proc/self/fd/1 bs=1 count=$[0x" $7 "] skip=$[0x" $6 "]"}' | sh 2>/dev/null`
exec "$INTERP" "$@"

@ -46,6 +46,10 @@ def main(argv):
profile = config[args.platform] profile = config[args.platform]
steamroot = os.path.expanduser(profile["steamroot"]) steamroot = os.path.expanduser(profile["steamroot"])
if profile.get("Enabled", "1") != "1":
print("Profile disabled in config")
return 0
# Read steam libraryfolders.vdf # Read steam libraryfolders.vdf
libsvdf = os.path.join(steamroot, "steamapps", "libraryfolders.vdf") libsvdf = os.path.join(steamroot, "steamapps", "libraryfolders.vdf")
@ -109,10 +113,11 @@ def main(argv):
with open(libsvdf, "w") as f: with open(libsvdf, "w") as f:
vdf.write(f, libs_config) vdf.write(f, libs_config)
os.rename(steamvdf, steamvdf + ".bak") if profile.get("DontTouchConfigVdf", "0") != "1":
with open(steamvdf, "w") as f: os.rename(steamvdf, steamvdf + ".bak")
vdf.write(f, steam_config) with open(steamvdf, "w") as f:
vdf.write(f, steam_config)
return 0 return 0

@ -1,6 +0,0 @@
#!/bin/sh
echo "Setting up pulseaudio tunnels for the G930 Headset"
echo -n "G930 Sink Tunnel: "
pactl load-module module-tunnel-sink-new server=10.66.64.4 sink=alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo sink_name=tunnel.arch.g930 sink_properties=\"device.description=\'G930 Headset\'\"
echo -n "G930 Source Tunnel: "
pactl load-module module-tunnel-source-new server=10.66.64.4 source=alsa_input.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-mono source_name=tunnel.arch.g930 source_properties=\"device.description=\'G930 Headset\'\"

@ -26,6 +26,7 @@
"wine32" "wine32"
{ {
"steamroot" "~/.local/share/wineprefixes/Steam32/drive_c/Program Files/Steam/" "steamroot" "~/.local/share/wineprefixes/Steam32/drive_c/Program Files/Steam/"
"Enabled" "0"
"Libraries" "Libraries"
{ {
"/media/Data/SteamLibrary" "E:\\SteamLibrary" "/media/Data/SteamLibrary" "E:\\SteamLibrary"
@ -35,4 +36,4 @@
{ {
"0" "F:\\Steam\\Library" "0" "F:\\Steam\\Library"
} }
} }

Loading…
Cancel
Save