MCPcopy Create free account
hub / github.com/DFHack/dfhack / close

Method close

library/MemoryPatcher.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void MemoryPatcher::close()
76 {
77 for (size_t i = 0; i < save.size(); i++)
78 p->setPermissions(save[i], save[i]);
79
80 save.clear();
81 ranges.clear();
82 };
83}

Callers 5

InitSimulationThreadMethod · 0.45
GetDefaultPortMethod · 0.45
ServerMainImplMethod · 0.45
writeToGamelogMethod · 0.45
saveMethod · 0.45

Calls 3

setPermissionsMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected