Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ ValidateOS
Function
ValidateOS
library/include/VersionInfo.h:184–191 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
182
};
183
184
void ValidateOS() {
185
static const OSType expected = getCurOS();
186
187
if (expected != getOS()) {
188
std::cerr <<
"OS mismatch; resetting to "
<< int(expected) << std::endl;
189
setOS(expected);
190
}
191
}
192
};
193
}
Callers
nothing calls this directly
Calls
3
getCurOS
Function · 0.85
getOS
Function · 0.85
setOS
Function · 0.85
Tested by
no test coverage detected