⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

PoB Process count#95

Open
LocalIdentity wants to merge 1 commit intomasterfrom
add_pob-process-count
Open

PoB Process count#95
LocalIdentity wants to merge 1 commit intomasterfrom
add_pob-process-count

Conversation

@LocalIdentity
Copy link
Contributor

The new GetProcessCount helper (sys_main.cpp:438) walks the system process list via Windows’ Toolhelp API—no external commands. It creates a snapshot with CreateToolhelp32Snapshot, iterates PROCESSENTRY32W, lowercases each executable name, and increments a counter whenever the name matches one of the PoB executable variants passed in from Lua. That count flows back through the Lua binding (ui_api.cpp:2024) up to getMatchingProcessCount in src/Launch.lua:20, so the updater knows exactly how many sibling PoB processes are running.

The new `GetProcessCount` helper (sys_main.cpp:438) walks the system process list via Windows’ Toolhelp API—no external commands. It creates a snapshot with `CreateToolhelp32Snapshot`, iterates `PROCESSENTRY32W`, lowercases each executable name, and increments a counter whenever the name matches one of the PoB executable variants passed in from Lua. That count flows back through the Lua binding (ui_api.cpp:2024) up to `getMatchingProcessCount` in src/Launch.lua:20, so the updater knows exactly how many sibling PoB processes are running.
@LocalIdentity LocalIdentity added the enhancement New feature or request label Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants