Skip to content

Commit

Permalink
Merge pull request #15 from ChenglongMa/dev-v1.2.2
Browse files Browse the repository at this point in the history
Release v1.2.2
  • Loading branch information
ChenglongMa authored Aug 5, 2024
2 parents 628ff7d + f77da52 commit 91c288a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metadata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version: 1.2.1
Version: 1.2.2
CompanyName: Chenglong Ma
FileDescription: LOL Launcher
InternalName: LOLauncher
Expand Down
6 changes: 4 additions & 2 deletions src/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ctypes
import json
import locale
import os
import re
import shutil
Expand All @@ -20,7 +21,7 @@
from github import Github
from watchdog.events import FileSystemEventHandler

VERSION = '1.2.1'
VERSION = '1.2.2'
APP_NAME = 'LOLauncher'
REPO_NAME = 'ChenglongMa/LOLauncher'
SUPPORTED_PATCH_LINEs = ['live', 'pbe']
Expand Down Expand Up @@ -122,7 +123,8 @@ def write_permission(file_path):
def is_running(process_name):
try:
commands = ['tasklist', '/FI', f'ImageName eq {process_name}', '/FI', 'Status eq Running', '/FO', 'LIST']
output = subprocess.check_output(commands, creationflags=subprocess.CREATE_NO_WINDOW).decode()
default_encoding = locale.getpreferredencoding()
output = subprocess.check_output(commands, creationflags=subprocess.CREATE_NO_WINDOW).decode(default_encoding)
match = re.search(r'PID:\s+(\d+)', output)
if match:
pid = int(match.group(1))
Expand Down

0 comments on commit 91c288a

Please sign in to comment.