MCPcopy Create free account
hub / github.com/NBlood/NBlood / Saveable_RestoreCodeSym

Function Saveable_RestoreCodeSym

source/sw/src/saveable.cpp:136–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136int Saveable_RestoreCodeSym(savedcodesym *sym, void **ptr)
137{
138 if (sym->module == 0)
139 {
140 *ptr = NULL;
141 return 0;
142 }
143
144 if (sym->module > nummodules) return -1;
145 if (sym->index >= saveablemodules[sym->module-1]->numcode) return -1;
146
147 *ptr = saveablemodules[sym->module-1]->code[sym->index];
148
149 return 0;
150}
151
152int Saveable_RestoreDataSym(saveddatasym *sym, void **ptr)
153{

Callers 1

LoadSymCodeInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected