Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: ふぁ <yuki@yuki0311.com>
  • Loading branch information
fa0311 committed Jan 29, 2023
1 parent 6d85602 commit d15213f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions DMMGamePlayerFastLauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ def __init__(self, error_manager: ErrorManager) -> None:
self.error_manager = error_manager

def run(
self, args: dict[str], admin: bool = False
self, args: dict[str], admin: bool = False, force: bool = False
) -> subprocess.Popen[bytes] | None:
print(" ".join(args))
if admin:
if not self.non_bypass_uac:
if not self.non_bypass_uac and not force:
run_bypass_uac()
elif self.non_request_admin:
self.error_manager.error(error=ErrorManager.permission_error)
Expand Down Expand Up @@ -303,10 +303,7 @@ def run_bypass_uac():
"/tn",
schtasks_name,
]
if arg.non_request_admin:
error_manager.error(error=ErrorManager.permission_error)
return
process_manager.run(create_args, admin=True)
process_manager.run(create_args, admin=True, force=True)
time.sleep(3)
process_manager.run(run_args).wait()
time.sleep(5)
Expand Down

0 comments on commit d15213f

Please sign in to comment.