This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |