def test_bad_input(self): """ Check False is returned if verb is not a string """ with Quiet(): zero = util.checkinstalled(0) mtlist = util.checkinstalled([]) self.assertFalse(zero) self.assertFalse(mtlist)
def test_return_installed(self): """ Check True is returned if verb is in winetricks.log """ with Quiet(): checkinstalled = util.checkinstalled('good') self.assertTrue(checkinstalled)
def test_return_uninstalled(self): """ Check False is returned if verb is not in winetricks.log """ with Quiet(): checkinstalled = util.checkinstalled('bad') self.assertFalse(checkinstalled)
def main(): """ Install xact and dinput8, override libraries and disable esync """ print('Applying fixes for RiME') # If not already installed, install xact if not util.checkinstalled('xact'): util.protontricks('xact') # Gamepad doesn't work properly without dinput8 installed if not util.checkinstalled('dinput8'): util.protontricks('dinput8') # To fix audio crackling, set xaudio2_7.dll to native # To fix gamepad set dinput8 to native util.winedll_override('xaudio2_7,dinput8', 'n') # disable esync to prevent game crash after a few minutes util.disable_esync()
def main(): """ Install xact and override """ print('Applying fixes for Banished') # If not already installed, install xact if not util.checkinstalled('xact'): util.protontricks('xact') # Set xaudio2_7 to native, otherwise audio won't work util.winedll_override('xaudio2_7', 'n')