| 321 | } |
| 322 | |
| 323 | int 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 | |
| 344 | bool NativeModule::getTLSInfo(void **pTls, |
| 345 | uint32_t *initSize, |
no test coverage detected