File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " wh3mm" ,
3
3
"productName" : " wh3mm" ,
4
- "version" : " 2.12.1 " ,
4
+ "version" : " 2.12.2 " ,
5
5
"description" : " WH3 Mod Manager" ,
6
6
"main" : " .webpack/main" ,
7
7
"scripts" : {
Original file line number Diff line number Diff line change @@ -256,9 +256,11 @@ if (!gotTheLock) {
256
256
try {
257
257
// if a game crashes you can end up with a tiny running process of the game, that's why we have a memory filter here
258
258
exec (
259
- `tasklist /fi "IMAGENAME eq ${ gameToProcessName [ appData . currentGame ] } " /fi "MEMUSAGE gt 10000"` ,
259
+ `tasklist /nh /fi "IMAGENAME eq ${
260
+ gameToProcessName [ appData . currentGame ]
261
+ } " /fi "MEMUSAGE gt 10000"`,
260
262
( _ , stdout ) => {
261
- const isWH3Running = ! stdout . startsWith ( "INFO: " ) ;
263
+ const isWH3Running = stdout . includes ( gameToProcessName [ appData . currentGame ] ) ;
262
264
if ( appData . isWH3Running != isWH3Running ) {
263
265
appData . isWH3Running = isWH3Running ;
264
266
windows . mainWindow ?. webContents . send ( "setIsWH3Running" , appData . isWH3Running ) ;
You can’t perform that action at this time.
0 commit comments