mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-21 10:03:56 +00:00
fix: deleted unnecessary import and fixed assertion
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import path from "node:path";
|
||||
import fs from "node:fs";
|
||||
import { registerEvent } from "../register-event";
|
||||
import { gamesSublevel, levelKeys } from "@main/level";
|
||||
import { gamesSublevel } from "@main/level";
|
||||
import { GameExecutables, logger, WindowManager } from "@main/services";
|
||||
|
||||
const SCAN_DIRECTORIES = [
|
||||
"C:\\Games",
|
||||
"D:\\Games",
|
||||
"C:\\Program Files (x86)\\Steam\\steamapps\\common",
|
||||
"C:\\Program Files\\Steam\\steamapps\\common",
|
||||
"C:\\Program Files (x86)\\DODI-Repacks",
|
||||
String.raw`C:\Games`,
|
||||
String.raw`D:\Games`,
|
||||
String.raw`C:\Program Files (x86)\Steam\steamapps\common`,
|
||||
String.raw`C:\Program Files\Steam\steamapps\common`,
|
||||
String.raw`C:\Program Files (x86)\DODI-Repacks`,
|
||||
];
|
||||
|
||||
interface FoundGame {
|
||||
@@ -111,7 +111,7 @@ async function findExecutableInFolder(
|
||||
|
||||
if (executableNames.has(fileName)) {
|
||||
const parentPath =
|
||||
"parentPath" in entry ? (entry.parentPath as string) : folderPath;
|
||||
"parentPath" in entry ? entry.parentPath : folderPath;
|
||||
|
||||
return path.join(parentPath, entry.name);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
|
||||
&__games-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
|
||||
Reference in New Issue
Block a user