Skip to content

Commit

Permalink
Merge pull request #269 from Eisaichen/bilibili
Browse files Browse the repository at this point in the history
 feat: 支持B服
  • Loading branch information
moesnow authored Jun 23, 2024
2 parents 829d553 + 311470a commit 0b60132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/gamecontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def start_game(self) -> bool:
self.log_error(f"游戏路径不存在:{self.game_path}")
return False

if not os.system(f'cmd /C start "" "{self.game_path}"'):
game_folder = self.game_path.rpartition('\\')[0]
if not os.system(f'cmd /C start "" /D "{game_folder}" "{self.game_path}"'):
self.log_info(f"游戏启动:{self.game_path}")
return True
else:
Expand Down

0 comments on commit 0b60132

Please sign in to comment.