MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / pf_init

Function pf_init

engine/PoseidonFormats/PoseidonFormats.cpp:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115PF_API int pf_init(void) {
116 std::lock_guard<std::mutex> lock(g_initMutex);
117 if (g_initialized) return 1;
118 Poseidon::Foundation::CurrentAppFrameFunctions = &g_appFrame;
119 SetMemorySystemReady(true);
120 InitLibraryElement();
121 Poseidon::GEngine = Poseidon::CreateEngineDummy();
122 g_initialized = true;
123 ClearError();
124 return 1;
125}
126
127PF_API void pf_shutdown(void) {
128 std::lock_guard<std::mutex> lock(g_initMutex);

Callers

nothing calls this directly

Calls 4

InitLibraryElementFunction · 0.85
CreateEngineDummyFunction · 0.85
ClearErrorFunction · 0.85
SetMemorySystemReadyFunction · 0.50

Tested by

no test coverage detected