Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions PortMaster/pylibs/harbourmaster/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
3 changes: 1 addition & 2 deletions PortMaster/pylibs/harbourmaster/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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([])
Expand Down