diff --git a/PortMaster/pylibs/harbourmaster/hardware.py b/PortMaster/pylibs/harbourmaster/hardware.py index 8821371..e52f52d 100644 --- a/PortMaster/pylibs/harbourmaster/hardware.py +++ b/PortMaster/pylibs/harbourmaster/hardware.py @@ -548,6 +548,10 @@ def new_device_info(): info['device'] = info['device'].lower().replace(' ', '-') + if Path('/mnt/SDCARD/spruce').is_dir(): + info['name'] = 'spruce' + info['version'] = safe_cat('/mnt/SDCARD/spruce/spruce').strip() + info.setdefault('name', 'Unknown') info.setdefault('version', '0.0.0') diff --git a/PortMaster/pylibs/harbourmaster/platform.py b/PortMaster/pylibs/harbourmaster/platform.py index 05bb8db..a60fbf5 100755 --- a/PortMaster/pylibs/harbourmaster/platform.py +++ b/PortMaster/pylibs/harbourmaster/platform.py @@ -1275,8 +1275,7 @@ def portmaster_install(self, bash_files): class PlatformSpruce(PlatformBase): - # spruce sets SDL_GAMECONTROLLERCONFIG per pad itself. - WANT_XBOX_FIX = False + WANT_XBOX_FIX = True def first_run(self): self.portmaster_install([])