mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-28 05:11:02 +00:00
fix: fixing error message for path being used
This commit is contained in:
@@ -7,11 +7,11 @@ const verifyExecutablePathInUse = async (
|
|||||||
) => {
|
) => {
|
||||||
for await (const game of gamesSublevel.values()) {
|
for await (const game of gamesSublevel.values()) {
|
||||||
if (game.executablePath === executablePath) {
|
if (game.executablePath === executablePath) {
|
||||||
return true;
|
return game;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
registerEvent("verifyExecutablePathInUse", verifyExecutablePathInUse);
|
registerEvent("verifyExecutablePathInUse", verifyExecutablePathInUse);
|
||||||
|
|||||||
Reference in New Issue
Block a user