mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 03:21:29 +08:00
Fix: Utf-8 in BlueStacks Hyper-V connection
This commit is contained in:
@@ -190,7 +190,7 @@ class Connection:
|
|||||||
dir = QueryValueEx(key, 'UserDefinedDir')[0]
|
dir = QueryValueEx(key, 'UserDefinedDir')[0]
|
||||||
logger.info(f"Configuration file directory: {dir}")
|
logger.info(f"Configuration file directory: {dir}")
|
||||||
|
|
||||||
with open(os.path.join(dir, 'bluestacks.conf')) as f:
|
with open(os.path.join(dir, 'bluestacks.conf'), encoding='utf-8') as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
port = re.search(rf'{parameter_name}="(\d+)"', content)
|
port = re.search(rf'{parameter_name}="(\d+)"', content)
|
||||||
if port is None:
|
if port is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user