From a473d52e9df47bf9194824f23c918e6d02431be7 Mon Sep 17 00:00:00 2001 From: "d.shuvalov" <46745805+PrEvIeS@users.noreply.github.com> Date: Tue, 5 May 2026 16:50:45 +0300 Subject: [PATCH] Support official PoE2 client (PathOfExile.exe) alongside Steam build `find_game_log()` previously matched only `PathOfExileSteam.exe`, leaving players on the standalone (non-Steam) client without Discord Rich Presence. Introduce a `PROCESS_CANDIDATES` list and switch the equality check to membership so both the Steam build and the official client are detected. --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 7ee959b..f392852 100644 --- a/main.py +++ b/main.py @@ -100,12 +100,15 @@ def get_class(self) -> CharacterClass: }[self] +PROCESS_CANDIDATES = ["PathOfExileSteam.exe", "PathOfExile.exe"] + + def find_game_log(): logging.info("Waiting for the game start..") while True: try: for process in psutil.process_iter(["name", "exe"]): - if process.info.get("name") == "PathOfExileSteam.exe": + if process.info.get("name") in PROCESS_CANDIDATES: full_path = process.info.get("exe") if full_path: game_dir = os.path.dirname(full_path)