mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 08:43:48 +03:00
format with prettier
This commit is contained in:
parent
2675641f7b
commit
1620437d1e
@ -1,7 +1,6 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|
||||||
import { IsNull, Not } from "typeorm";
|
import { IsNull, Not } from "typeorm";
|
||||||
import { exec } from "child_process"
|
|
||||||
import { gameRepository } from "@main/repository";
|
import { gameRepository } from "@main/repository";
|
||||||
import { getProcesses } from "@main/helpers";
|
import { getProcesses } from "@main/helpers";
|
||||||
import { WindowManager } from "./window-manager";
|
import { WindowManager } from "./window-manager";
|
||||||
@ -16,7 +15,7 @@ export const startProcessWatcher = async () => {
|
|||||||
while (true) {
|
while (true) {
|
||||||
await sleep(sleepTime);
|
await sleep(sleepTime);
|
||||||
|
|
||||||
console.log("loopTotalTime")
|
console.log("loopTotalTime");
|
||||||
const games = await gameRepository.find({
|
const games = await gameRepository.find({
|
||||||
where: {
|
where: {
|
||||||
executablePath: Not(IsNull()),
|
executablePath: Not(IsNull()),
|
||||||
@ -27,9 +26,9 @@ export const startProcessWatcher = async () => {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.time("getProcesses")
|
console.time("getProcesses");
|
||||||
const processes = await getProcesses();
|
const processes = await getProcesses();
|
||||||
console.timeEnd("getProcesses")
|
console.timeEnd("getProcesses");
|
||||||
|
|
||||||
for (const game of games) {
|
for (const game of games) {
|
||||||
const basename = path.win32.basename(game.executablePath);
|
const basename = path.win32.basename(game.executablePath);
|
||||||
|
Loading…
Reference in New Issue
Block a user