Refactor to use LockedWrapper guard
This commit is contained in:
@@ -3,17 +3,6 @@
|
||||
|
||||
namespace engineutil {
|
||||
|
||||
void init_wrapper(EngineWrapper* w) {
|
||||
void* DLL = FPlatformProcess::GetDllHandle(TEXT("c:\\Luprex\\build\\visual\\luprexlib.dll"));
|
||||
if (DLL != nullptr) {
|
||||
using InitFn = void (*)(EngineWrapper*);
|
||||
InitFn init = (InitFn)FPlatformProcess::GetDllExport(DLL, TEXT("init_engine_wrapper"));
|
||||
if (init != nullptr) {
|
||||
init(w);
|
||||
w->hook_dprint(engineutil::DPrintHook);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The DPrint array. This stores the dprints
|
||||
// until they can be collected by the console implementation.
|
||||
|
||||
Reference in New Issue
Block a user