mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 07:02:06 +00:00
fix: ensure screenshot interval is not applied to scrcpy if screenshot_metho_override is true
This commit is contained in:
@@ -199,8 +199,9 @@ class Screenshot(Adb, WSA, DroidCast, AScreenCap, Scrcpy, NemuIpc, LDOpenGL):
|
||||
raise ScriptError(f'Unknown screenshot interval: {interval}')
|
||||
# Screenshot interval in scrcpy is meaningless,
|
||||
# video stream is received continuously no matter you use it or not.
|
||||
if self.config.Emulator_ScreenshotMethod == 'scrcpy':
|
||||
interval = 0.1
|
||||
if not self.screenshot_method_override:
|
||||
if self.config.Emulator_ScreenshotMethod == 'scrcpy':
|
||||
interval = 0.1
|
||||
|
||||
if interval != self._screenshot_interval.limit:
|
||||
logger.info(f'Screenshot interval set to {interval}s')
|
||||
|
||||
Reference in New Issue
Block a user