Skip to content

Commit

Permalink
Merge pull request #35 from fa0311/develop-v4
Browse files Browse the repository at this point in the history
v4.3.1
  • Loading branch information
fa0311 authored Jul 22, 2022
2 parents ab4a713 + d39a7e1 commit f63ca29
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/dist
/*.spec
/__pycache__
*.exe
*.exe
*.bytes
15 changes: 13 additions & 2 deletions DMMGamePlayerFastLauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import sqlite3
import os
import time
import re


def gen_rand_hex():
Expand Down Expand Up @@ -95,15 +96,25 @@ def get_dpg5_config(dgp5_path):
blob = f.read()
if blob == b"" or arg.login_force:
session = get_dgp5_session(DGP5_PATH)

response = session.get(
"https://www.dmm.com/",
headers=HEADERS,
proxies=PROXY,
).text

reg = '<script{any}id="auto-login"{any}data-encoded="{data}"{any}></script>'.format(any=".*?",data="([0-9a-zA-Z_]*)")
data_encoded = re.findall(reg, response)[0]

response = session.get(
"https://www.dmm.com/my/-/login/auth/=/direct_login=1/path=DRVESVwZTkVPEh9cXltIVA4IGV5ETRQWVlID",
f"https://accounts.dmm.com/service/login/token/=/path={data_encoded}",
headers=HEADERS,
proxies=PROXY,
)
if session.cookies.get("login_session_id") == None:
if not arg.skip_exception:
raise Exception(
"ログインに失敗しました\nDMMGamePlayerでログインしていない時またはDMMGamePlayerが起動している時にこのエラーが発生する可能性があります"
"ログインに失敗しました\nDMMGamePlayerを起動してログインし直して下さい"
)
contents = json.dumps(
{
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ DMM Game Player のゲームを高速かつセキュアに起動できるラン
### 何もしてないのに壊れた!!ってとき

> **「ログインに失敗しました」というエラーが出る**<br>
> DMMGamePlayerを起動してログインして下さい<br>
> DMMGamePlayerを起動しているなら終了させて下さい<br>
> DMMGamePlayerを起動してログインし直して下さい<br>
> **「ゲームが起動しませんでした」というエラーが出る**<br>
> ゲームにアップデートがないか確認して下さい<br>
Expand Down
2 changes: 1 addition & 1 deletion setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "DMMGamePlayerFastLauncher"
#define MyAppVersion "4.3.0"
#define MyAppVersion "4.3.1"
#define MyAppPublisher "yuki"
#define MyAppURL "https://github.com/fa0311/DMMGamePlayerFastLauncher"
#define MyAppExeName "DMMGamePlayerFastLauncher.exe"
Expand Down

0 comments on commit f63ca29

Please sign in to comment.