mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
use app.isPackaged directly inside getProcesses function
This commit is contained in:
parent
9b9eabd801
commit
a4edff3619
3 changed files with 5 additions and 6 deletions
|
@ -4,7 +4,6 @@ import { IsNull, Not } from "typeorm";
|
|||
import { gameRepository } from "@main/repository";
|
||||
import { getProcesses } from "@main/helpers";
|
||||
import { WindowManager } from "./window-manager";
|
||||
import { app } from "electron";
|
||||
|
||||
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
|
||||
|
@ -26,7 +25,7 @@ export const startProcessWatcher = async () => {
|
|||
continue;
|
||||
}
|
||||
|
||||
const processes = await getProcesses(app.isPackaged);
|
||||
const processes = await getProcesses();
|
||||
|
||||
for (const game of games) {
|
||||
const basename = path.win32.basename(game.executablePath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue