Skip to content

Commit

Permalink
update arg
Browse files Browse the repository at this point in the history
  • Loading branch information
fa0311 committed Mar 11, 2022
1 parent 21ffa2c commit 022c0a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DMMGamePlayerFastLauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"--dmmgameplayer-path",
default="C:/Program Files/DMMGamePlayer/DMMGamePlayer.exe",
)
argpar.add_argument("--kill", default=True)
argpar.add_argument("--debug", default=False)
argpar.add_argument("--non-kill", action='store_true')
argpar.add_argument("--debug", action='store_true')
arg = argpar.parse_args()

headers = {
Expand Down Expand Up @@ -58,10 +58,10 @@ def dgp5_session():
)
if 'Header key: "cookie"' in text:
cookie = re.findall(r'"(.*?)"', text)[1]
if arg.kill:
if not arg.non_kill:
process.terminate()
return install_data, cookie
raise Exception("DMMGamePlayerが起動できませんでした")
raise Exception("DMMGamePlayerの実行中にエラーが発生しました\n既に実行されているか実行中に終了した可能性があります")


install_data, headers["cookie"] = dgp5_session()
Expand Down

0 comments on commit 022c0a6

Please sign in to comment.