Skip to content

Commit 5c58ac0

Browse files
authored
Merge pull request #12 from fa0311/develop
update v3.0.2
2 parents 7cfb6a4 + ade9c6d commit 5c58ac0

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

DMMGamePlayerFastLauncher.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,23 @@ def _end_stdout(self):
112112
if not arg.game_path:
113113
for contents in install_data["contents"]:
114114
if contents["productId"] == arg.product_id:
115-
game_path = glob.glob(
115+
game_path_list = glob.glob(
116116
"{path}\*.exe._".format(path=contents["detail"]["path"])
117-
)[0][:-2]
117+
)
118+
if len(game_path_list) > 0:
119+
game_path = game_path_list[0][:-2]
120+
break
121+
game_path_list = glob.glob(
122+
"{path}\*.exe".format(path=contents["detail"]["path"])
123+
)
124+
for path in game_path_list:
125+
lower_path = path.lower()
126+
if not ("unity" in lower_path or "install" in lower_path):
127+
game_path = path
128+
break
129+
else:
130+
process.kill()
131+
raise Exception("ゲームのパスの検出に失敗しました\n--game-path でゲームのパスを指定してみてください")
118132
break
119133
else:
120134
process.kill()
@@ -123,7 +137,6 @@ def _end_stdout(self):
123137
+ " ".join([contents["productId"] for contents in install_data["contents"]])
124138
+ "から選択して下さい"
125139
)
126-
127140
response = requests.post(
128141
"https://apidgp-gameplayer.games.dmm.com/v5/launch/cl",
129142
headers=headers,

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ DMM Game Player のゲームを高速かつセキュアに起動できるラン
4141
> **ゲームのアイコンに寄せたい**<br>
4242
> ショートカットを右クリック→プロパティ→アイコンの変更→参照
4343
44+
> **ゲームのパスの検出に失敗しましたというエラーが出るまたは起動しない**<br>
45+
> --game-path <ゲームのパス> を指定する<br>
46+
例<br>
47+
`%AppData%\DMMGamePlayerFastLauncher\DMMGamePlayerFastLauncher.exe umamusume --game-path %UserProfile%/umamusume/umamusume.exe`<br>
48+
4449
## 典拠
4550
[Lutwidse/priconner_launch.py](https://gist.github.com/Lutwidse/82d8e7a20c96296bc0318f1cb6bf26ee)
4651

requirements.txt

720 Bytes
Binary file not shown.

setup.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "DMMGamePlayerFastLauncher"
5-
#define MyAppVersion "3.0"
5+
#define MyAppVersion "3.0.2"
66
#define MyAppPublisher "yuki"
77
#define MyAppURL "https://github.com/fa0311/DMMGamePlayerFastLauncher"
88
#define MyAppExeName "DMMGamePlayerFastLauncher.exe"

0 commit comments

Comments
 (0)