From d26534ab14b27b456c081a3f169137356c3d6898 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 14 Apr 2024 19:11:53 +0800 Subject: [PATCH] Add: Use nemu_ipc if available --- module/device/device.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/device/device.py b/module/device/device.py index 9f40da974..948fefe03 100644 --- a/module/device/device.py +++ b/module/device/device.py @@ -88,6 +88,12 @@ class Device(Screenshot, Control, AppControl): if not self.config.is_template_config and self.config.Emulator_ScreenshotMethod == 'auto': self.run_simple_screenshot_benchmark() + # SRC only, use nemu_ipc if available + available = self.nemu_ipc_available() + logger.attr('nemu_ipc_available', available) + if available: + self.config.override(Emulator_ScreenshotMethod='nemu_ipc') + def run_simple_screenshot_benchmark(self): """ Perform a screenshot method benchmark, test 3 times on each method.