mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 18:05:26 +00:00
Fix: Auto-fill emulator info on Windows only
(cherry picked from commit ccd19417ec3965fb2fa5a8040a00d88e4070ec9c)
This commit is contained in:
parent
0bffc37d60
commit
3357500277
@ -3,6 +3,7 @@ import itertools
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from module.device.env import IS_WINDOWS
|
||||
# Patch pkg_resources before importing adbutils and uiautomator2
|
||||
from module.device.pkg_resources import get_distribution
|
||||
|
||||
@ -86,7 +87,7 @@ class Device(Screenshot, Control, AppControl):
|
||||
raise
|
||||
|
||||
# Auto-fill emulator info
|
||||
if self.config.EmulatorInfo_Emulator == 'auto':
|
||||
if IS_WINDOWS and self.config.EmulatorInfo_Emulator == 'auto':
|
||||
_ = self.emulator_instance
|
||||
|
||||
# SRC only, use nemu_ipc if available
|
||||
|
Loading…
Reference in New Issue
Block a user