diff options
author | p0358 <p0358@users.noreply.github.com> | 2021-12-29 06:38:54 +0100 |
---|---|---|
committer | p0358 <p0358@users.noreply.github.com> | 2021-12-29 06:38:54 +0100 |
commit | 213bf6412410a09b0bdce62b8598bfa23ba096cf (patch) | |
tree | 68c650c35639a71e834d4e3fc964ee5bf65a9d28 /NorthstarDedicatedTest | |
parent | 8a1a2e97624d15617197248a5e292c5ead5e74a2 (diff) | |
download | NorthstarLauncher-213bf6412410a09b0bdce62b8598bfa23ba096cf.tar.gz NorthstarLauncher-213bf6412410a09b0bdce62b8598bfa23ba096cf.zip |
Add direct launcher
Diffstat (limited to 'NorthstarDedicatedTest')
-rw-r--r-- | NorthstarDedicatedTest/dllmain.cpp | 6 | ||||
-rw-r--r-- | NorthstarDedicatedTest/main.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/dllmain.cpp b/NorthstarDedicatedTest/dllmain.cpp index 80fc3ca4..1aa4bd3b 100644 --- a/NorthstarDedicatedTest/dllmain.cpp +++ b/NorthstarDedicatedTest/dllmain.cpp @@ -66,12 +66,12 @@ void WaitForDebugger(HMODULE baseAddress) } // in the future this will be called from launcher instead of dllmain -void InitialiseNorthstar() +bool InitialiseNorthstar() { if (initialised) { fprintf(stderr, "[WARN] Called InitialiseNorthstar more than once!\n"); - return; + return false; } initialised = true; @@ -129,4 +129,6 @@ void InitialiseNorthstar() // mod manager after everything else AddDllLoadCallback("engine.dll", InitialiseModManager); + + return true; }
\ No newline at end of file diff --git a/NorthstarDedicatedTest/main.h b/NorthstarDedicatedTest/main.h index ef5d86dc..90e88912 100644 --- a/NorthstarDedicatedTest/main.h +++ b/NorthstarDedicatedTest/main.h @@ -1,3 +1,3 @@ #pragma once -extern "C" __declspec(dllexport) void InitialiseNorthstar();
\ No newline at end of file +extern "C" __declspec(dllexport) bool InitialiseNorthstar();
\ No newline at end of file |