def main(): """ Runs the gamefix, with splash if zenity or cefpython3 is available """ if 'iscriptevaluator.exe' in sys.argv[2]: log.debug('Not running protonfixes for iscriptevaluator.exe') return if 'getcompatpath' in sys.argv[1]: log.debug('Not running protonfixes for getcompatpath') return if 'getnativepath' in sys.argv[1]: log.debug('Not running protonfixes for getnativepath') return log.info('Running protonfixes') with splash(): run_fix(game_id())
def main(): """ Runs the gamefix, with splash if zenity or cefpython3 is available """ check_args = [ 'iscriptevaluator.exe' in sys.argv[2], 'getcompatpath' in sys.argv[1], 'getnativepath' in sys.argv[1], ] if any(check_args): log.debug(str(sys.argv)) log.debug('Not running protonfixes for setup runs') return log.info('Running protonfixes') if config.enable_splash: with splash(): run_fix(game_id()) else: run_fix(game_id())