mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-22 02:13:59 +00:00
14 lines
335 B
TypeScript
14 lines
335 B
TypeScript
import { gameExecutables } from "./process-watcher";
|
|
|
|
export class GameExecutables {
|
|
static getExecutablesForGame(objectId: string): string[] | null {
|
|
const executables = gameExecutables[objectId];
|
|
|
|
if (!executables || executables.length === 0) {
|
|
return null;
|
|
}
|
|
|
|
return executables.map((exe) => exe.exe);
|
|
}
|
|
}
|