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

Method registerSymbol

GPCS4/Loader/ModuleLoader.cpp:280–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280bool ModuleLoader::registerSymbol(NativeModule const &mod,
281 std::string const &encName,
282 void *pointer)
283{
284 bool retVal = false;
285 do
286 {
287 std::string modName = {};
288 std::string libName = {};
289 uint64_t nid = 0;
290
291 retVal = mod.getExportSymbolInfo(encName, &modName, &libName, &nid);
292 if (!retVal)
293 {
294 break;
295 }
296
297 retVal = m_modSystem.registerNativeSymbol(modName, libName, nid, pointer);
298 if (!retVal)
299 {
300 break;
301 }
302
303 retVal = true;
304 } while (false);
305
306 return retVal;
307}
308
309bool ModuleLoader::registerSymbol(NativeModule const &mod, size_t idx)
310{

Callers

nothing calls this directly

Calls 3

getExportSymbolInfoMethod · 0.80
getSymbolMethod · 0.80
registerNativeSymbolMethod · 0.45

Tested by

no test coverage detected