File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed
Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,23 @@ def _end_stdout(self):
112112if 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-
127140response = requests .post (
128141 "https://apidgp-gameplayer.games.dmm.com/v5/launch/cl" ,
129142 headers = headers ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments