Skip to content

Commit cce1894

Browse files
committed
release: Detect if DLL is loadable or not.
1 parent c9a7f19 commit cce1894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Flarial.Launcher.Runtime/Client/FlarialClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal FlarialClient() { }
3030
protected abstract string DownloadUri { get; }
3131
protected abstract string WindowClass { get; }
3232

33-
public bool Launch(bool initialized)
33+
public bool? Launch(bool initialized)
3434
{
3535
if (Minecraft.GetWindow(WindowClass) is { } client)
3636
{
@@ -43,7 +43,7 @@ public bool Launch(bool initialized)
4343
}
4444

4545
Library library = new(FileName);
46-
if (!library.IsLoadable) return false;
46+
if (!library.IsLoadable) return null;
4747

4848
return Injector.Launch(initialized, library) is { };
4949
}

0 commit comments

Comments
 (0)