mirror of
				https://github.com/hydralauncher/hydra.git
				synced 2025-03-09 15:40:26 +00:00 
			
		
		
		
	feat: update achievement audio and refactors
This commit is contained in:
		
							parent
							
								
									084b7f5b9c
								
							
						
					
					
						commit
						c18c41ac95
					
				
					 13 changed files with 99 additions and 55 deletions
				
			
		| 
						 | 
				
			
			@ -29,12 +29,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)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue