fix: fixing error message for path being used

This commit is contained in:
Chubby Granny Chaser
2025-05-13 23:16:38 +01:00
parent 4f8212f8e3
commit 66ced3c779

View File

@@ -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);