diff --git a/src/main/events/library/verify-executable-path.ts b/src/main/events/library/verify-executable-path.ts index a48a0d38..dc961116 100644 --- a/src/main/events/library/verify-executable-path.ts +++ b/src/main/events/library/verify-executable-path.ts @@ -7,11 +7,11 @@ const verifyExecutablePathInUse = async ( ) => { for await (const game of gamesSublevel.values()) { if (game.executablePath === executablePath) { - return true; + return game; } } - return false; + return null; }; registerEvent("verifyExecutablePathInUse", verifyExecutablePathInUse);