mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-11 13:22:05 +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}')
|
raise ScriptError(f'Unknown screenshot interval: {interval}')
|
||||||
# Screenshot interval in scrcpy is meaningless,
|
# Screenshot interval in scrcpy is meaningless,
|
||||||
# video stream is received continuously no matter you use it or not.
|
# video stream is received continuously no matter you use it or not.
|
||||||
if self.config.Emulator_ScreenshotMethod == 'scrcpy':
|
if not self.screenshot_method_override:
|
||||||
interval = 0.1
|
if self.config.Emulator_ScreenshotMethod == 'scrcpy':
|
||||||
|
interval = 0.1
|
||||||
|
|
||||||
if interval != self._screenshot_interval.limit:
|
if interval != self._screenshot_interval.limit:
|
||||||
logger.info(f'Screenshot interval set to {interval}s')
|
logger.info(f'Screenshot interval set to {interval}s')
|
||||||
|
|||||||
Reference in New Issue
Block a user