Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
Signed-off-by: ふぁ <yuki@yuki0311.com>
  • Loading branch information
fa0311 committed Aug 24, 2023
1 parent 3662758 commit 72eccf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DMMGamePlayerFastLauncher/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def launch(self, id: str):
dgp_config = session.get_config()
game = [x for x in dgp_config["contents"] if x["productId"] == data.product_id.get()][0]

if response["result_code"] != 100:
raise Exception(response["error"])

if not Env.DEVELOP:
if response["data"]["is_administrator"] and not ProcessManager.admin_check():
raise Exception(i18n.t("app.launch.admin_error"))

if response["result_code"] != 100:
raise Exception(response["error"])

game_file = Path(game["detail"]["path"])
game_path = game_file.joinpath(response["data"]["exec_file_name"])

Expand Down

0 comments on commit 72eccf2

Please sign in to comment.