mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-26 02:11:06 +00:00
Fix: Set game client if package name is set
so setting Emulator_GameClient can be fool-proof
This commit is contained in:
parent
00f3bf7495
commit
00f1d04694
@ -1023,7 +1023,14 @@ class Connection(ConnectionAttr):
|
|||||||
self.package = packages[0]
|
self.package = packages[0]
|
||||||
# Set config
|
# Set config
|
||||||
if set_config:
|
if set_config:
|
||||||
|
with self.config.multi_set():
|
||||||
self.config.Emulator_PackageName = server_.to_server(self.package)
|
self.config.Emulator_PackageName = server_.to_server(self.package)
|
||||||
|
if self.package in server_.VALID_CLOUD_PACKAGE:
|
||||||
|
if self.config.Emulator_GameClient != 'cloud_android':
|
||||||
|
self.config.Emulator_GameClient = 'cloud_android'
|
||||||
|
else:
|
||||||
|
if self.config.Emulator_GameClient != 'android':
|
||||||
|
self.config.Emulator_GameClient = 'android'
|
||||||
# Set server
|
# Set server
|
||||||
# logger.info('Server changed, release resources')
|
# logger.info('Server changed, release resources')
|
||||||
# set_server(self.package)
|
# set_server(self.package)
|
||||||
|
Loading…
Reference in New Issue
Block a user