Skip to content

Instantly share code, notes, and snippets.

@Morgawr
Morgawr / SetDeusEx.sh
Created February 9, 2013 14:18
Run this file in the root folder of the Deus Ex game (not the System folder!!) to adjust the settings to work properly on Linux with wine
#!/bin/bash
# Patch settings to make the game work properly on OpenGL devices
ini="System/DeusEx.ini"
splitline=$(awk '$0 ~ str{print NR FS b}{}' str="OpenGLDrv.OpenGLRenderDevice" $ini)
line="FrameRateLimit=60"
# Add OpenGL framelimit setting
head -n $splitline $ini > __first
tail -n +$(expr $splitline + 1) $ini > __last
echo $line | cat __first - __last > $ini