feat: adding change hero

This commit is contained in:
Chubby Granny Chaser 2024-10-05 02:25:46 +01:00
commit 58502aeb1f
No known key found for this signature in database
47 changed files with 3572 additions and 1461 deletions

View file

@ -25,12 +25,12 @@ export const watchProcesses = async () => {
if (games.length === 0) return;
const processes = await PythonInstance.getProcessList();
const processSet = new Set(processes.map((process) => process.exe));
for (const game of games) {
const executablePath = game.executablePath!;
const gameProcess = processes.find((runningProcess) => {
return executablePath == runningProcess.exe;
});
const gameProcess = processSet.has(executablePath);
if (gameProcess) {
if (gamesPlaytime.has(game.id)) {