diff --git a/LunaTranslator/LunaTranslator/myutils/traceplaytime.py b/LunaTranslator/LunaTranslator/myutils/traceplaytime.py index bd248adb..f12dd9ad 100644 --- a/LunaTranslator/LunaTranslator/myutils/traceplaytime.py +++ b/LunaTranslator/LunaTranslator/myutils/traceplaytime.py @@ -93,9 +93,8 @@ class playtimemanager: gamehwnd = gobject.baseobject.hwnd if gamehwnd: gamepid = windows.GetWindowThreadProcessId(gamehwnd) - if gamepid: - if pid == gamepid or pid == os.getpid(): - exes.add(exe) + if gamepid and pid == os.getpid(): + exes.add(getpidexe(gamepid)) return exes def finduids(self, exes): diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 0d147a13..ceb0f990 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 38) -set(VERSION_PATCH 7) +set(VERSION_PATCH 8) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)