-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
ctmod_boxtron.py
32 lines (22 loc) · 1.03 KB
/
ctmod_boxtron.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# pupgui2 compatibility tools module
# Boxtron
# Copyright (C) 2021 DavidoTek, partially based on AUNaseef's protonup
from PySide6.QtCore import QCoreApplication
from pupgui2.resources.ctmods.ctmod_luxtorpeda import CtInstaller as LuxtorpedaInstaller
CT_NAME = 'Boxtron'
CT_LAUNCHERS = ['steam']
CT_DESCRIPTION = {'en': QCoreApplication.instance().translate('ctmod_boxtron', '''Steam Play compatibility tool to run DOS games using native Linux DOSBox.''')}
class CtInstaller(LuxtorpedaInstaller):
BUFFER_SIZE = 4096
CT_URL = 'https://api.github.com/repos/dreamer/boxtron/releases'
CT_INFO_URL = 'https://github.com/dreamer/boxtron/releases/tag/'
def __init__(self, main_window = None):
super().__init__(main_window)
self.extract_dir_name = 'boxtron'
self.deps = [ 'dosbox', 'inotifywait', 'timidity' ]
def is_system_compatible(self) -> bool:
"""
Are the system requirements met?
Return Type: bool
"""
return super().is_system_compatible(ct_name = CT_NAME)