From bd3095a6be5c9891022602a1a5c7714d39cabb87 Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 4 May 2020 14:05:32 +0200 Subject: [PATCH] [utils] Add new helper for game specific workaround In the future we might extend this with other features, such as specific post-install things that some games may require to work or preconfigured WINE settings. --- legendary/utils/__init__.py | 0 legendary/utils/game_workarounds.py | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 legendary/utils/__init__.py create mode 100644 legendary/utils/game_workarounds.py diff --git a/legendary/utils/__init__.py b/legendary/utils/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/legendary/utils/game_workarounds.py b/legendary/utils/game_workarounds.py new file mode 100644 index 0000000..6b2d393 --- /dev/null +++ b/legendary/utils/game_workarounds.py @@ -0,0 +1,10 @@ +# coding: utf-8 + +# games where the download order optimizations are enabled by default +_optimize_default = { + 'wombat' +} + + +def is_opt_enabled(app_name): + return app_name.lower() in _optimize_default