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

Function get_config

plugins/preserve-rooms.cpp:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117static PersistentDataItem get_config(const char * suffix, bool create = false) {
118 string key = CONFIG_KEY + "/" + suffix;
119
120 PersistentDataItem c = World::GetPersistentSiteData(key);
121 if (!c.isValid())
122 c = World::AddPersistentSiteData(key);
123
124 return c;
125}
126
127static string serialize_zone_assignments(const ZoneAssignments & data) {
128 vector<string> elems;

Callers 6

store_zone_assignmentsFunction · 0.85
load_zone_assignmentsFunction · 0.85
store_associationsFunction · 0.85
load_associationsFunction · 0.85
store_noble_mapFunction · 0.85
load_noble_mapFunction · 0.85

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected