MCPcopy Create free account
hub / github.com/Inori/GPCS4 / initialize

Method initialize

GPCS4/Emulator/Module.cpp:323–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323int NativeModule::initialize()
324{
325 int retVal = 0;
326
327 if (isModule())
328 {
329 LOG_DEBUG("(%s) .init_proc() start.", fileName.c_str());
330 auto init = reinterpret_cast<init_proc>(m_moduleInfo.pInitProc);
331 retVal = init(0, 0, nullptr);
332
333 LOG_DEBUG("(%s) .init_proc() end. result = 0x%x", fileName.c_str(), retVal);
334
335#ifdef GPCS4_DEBUG
336 retVal = 0; // Ignore initializing modules on debug build
337#endif // GPCS4_DEBUG
338
339 }
340
341 return retVal;
342}
343
344bool NativeModule::getTLSInfo(void **pTls,
345 uint32_t *initSize,

Callers 1

initializeModulesMethod · 0.45

Calls 2

initFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected