Skip to content

Commit

Permalink
Merge pull request #43 from cwlm/dev
Browse files Browse the repository at this point in the history
better config file
  • Loading branch information
cwlm authored Sep 23, 2024
2 parents e92bc32 + e8accef commit 77ca92d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 38 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "sjtuautorun"
version = "0.3.0.2"
version = "0.3.1.0"
description = "交我润"
readme = "README.md"
authors = ["cwlm_ma"]
Expand Down
2 changes: 1 addition & 1 deletion sjtuautorun/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.0.2"
__version__ = "0.3.1.0"
32 changes: 0 additions & 32 deletions sjtuautorun/constants/colors.py

This file was deleted.

2 changes: 1 addition & 1 deletion sjtuautorun/controller/run_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def start(self):
if pos is None:
raise ImageNotFoundErr("Cannot find the go running icon")
self.Android.click(pos[0], pos[1])
self.logger.info("Start successfully!")
self.logger.info("Started successfully!")

def restart(self, times=0):
try:
Expand Down
4 changes: 2 additions & 2 deletions sjtuautorun/controller/windows_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class WindowsController:
def __init__(self, config, logger) -> None:
self.logger = logger

self.emulator_name = config["emulator_name"]
self.emulator_dir = config["emulator_dir"] # 模拟器路径
self.exe_name = os.path.basename(self.emulator_dir) # 自动获得模拟器的进程名
self.emulator_index = (int(re.search(r'\d+', self.emulator_name).group()) - 5554) / 2
self.emulator_index = config["emulator_index"] # 模拟器序号
self.emulator_name = f"emulator-{5554+self.emulator_index*2}" # 模拟器名

# ======================== 网络 ========================

Expand Down
2 changes: 1 addition & 1 deletion sjtuautorun/data/default_settings.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
emulator:
emulator_dir: ""
emulator_name: emulator-5554 # 雷电模拟器使用多开器请修改该项为 "emulator-5556"
emulator_index: 1 # 雷电模拟器使用多开器请修改该项为对应的模拟器id

DELAY: 1.5
PLAN_ROOT:
Expand Down

0 comments on commit 77ca92d

Please sign in to comment.