Move init::SanityCheck to kernel::SanityCheck

This commit is contained in:
Carl Dong
2022-05-27 16:47:05 -04:00
parent fed085a1a4
commit 265d6393bf
10 changed files with 68 additions and 30 deletions

View File

@@ -190,7 +190,7 @@ static bool AppInit(NodeContext& node, int argc, char* argv[])
}
node.kernel = std::make_unique<kernel::Context>();
if (!AppInitSanityChecks())
if (!AppInitSanityChecks(*node.kernel))
{
// InitError will have been called with detailed error, which ends up on console
return false;