MCPcopy Create free account
hub / github.com/78/tenbox / Install

Function Install

src/runtime/crash_handler.cpp:396–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394} // namespace
395
396void Install(const std::string& vm_dir,
397 const std::string& vm_id,
398 const std::string& build_version) {
399 // Config fields can be refined by later Install() calls (e.g. once the
400 // --vm-dir argument has been parsed), but the platform-level hooks are
401 // installed only once.
402 if (!vm_id.empty()) g_config.vm_id = vm_id;
403 if (!build_version.empty()) g_config.version = build_version;
404 if (!vm_dir.empty()) {
405 g_config.crash_dir = JoinPath(vm_dir, "crash");
406 EnsureCrashDir();
407 }
408 if (g_config.installed) return;
409 g_config.installed = true;
410 InstallPlatform();
411}
412
413void RecordGuestConsole(const uint8_t* data, size_t size) {
414 if (!data || size == 0) return;

Callers 1

mainFunction · 0.85

Calls 3

JoinPathFunction · 0.85
EnsureCrashDirFunction · 0.85
InstallPlatformFunction · 0.85

Tested by

no test coverage detected