| 113 | } |
| 114 | |
| 115 | PF_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 | |
| 127 | PF_API void pf_shutdown(void) { |
| 128 | std::lock_guard<std::mutex> lock(g_initMutex); |
nothing calls this directly
no test coverage detected