Skip to content

Commit 21a609b

Browse files
Merge remote-tracking branch 'upstream/main'
2 parents dcf78cf + 6162c4c commit 21a609b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

main-ui/devices/miyoo/mini/miyoo_mini_common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,4 +488,7 @@ def get_core_for_game(self, game_system_config, rom_file_path):
488488
core = game_system_config.get_effective_menu_selection("Emulator_MiyooMini", rom_file_path)
489489
if(core is None):
490490
core = game_system_config.get_effective_menu_selection("Emulator", rom_file_path)
491-
return core
491+
return core
492+
493+
def get_core_name_overrides(self, core_name):
494+
return [core_name, core_name+"-32"]

main-ui/devices/trimui/trim_ui_smart_pro_s.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,11 @@ def on_mainui_config_change(self):
198198
except Exception as e:
199199
PyUiLogger.get_logger().warning(f"Error reading {path}: {e}")
200200
return None
201+
202+
def _set_lumination_to_config(self):
203+
val = self.map_backlight_from_10_to_full_255(self.system_config.backlight)
204+
try:
205+
with open("/sys/class/backlight/backlight0/brightness", "w") as f:
206+
f.write(str(val))
207+
except Exception as e:
208+
PyUiLogger.get_logger().error(f"Error setting backlight: {e}")

0 commit comments

Comments
 (0)