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

Method getTLSInfo

GPCS4/Emulator/Module.cpp:344–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344bool NativeModule::getTLSInfo(void **pTls,
345 uint32_t *initSize,
346 uint32_t *totalSize,
347 uint32_t *align) const
348{
349 bool retVal = false;
350 do
351 {
352 if (pTls == nullptr)
353 {
354 LOG_ERR("nullptr error");
355 break;
356 }
357
358 *pTls = m_moduleInfo.pTlsAddr;
359 *initSize = m_moduleInfo.nTlsInitSize;
360 *totalSize = m_moduleInfo.nTlsSize;
361 *align = m_moduleInfo.nTlsAlign;
362
363 retVal = true;
364 } while (false);
365
366 return retVal;
367}
368
369void *NativeModule::getEntryPoint() const { return m_moduleInfo.pEntryPoint; }
370

Callers 1

initializeModulesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected