MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / main

Function main

samples/application/vmem_controller/main.cpp:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "SkrCore/log.h"
4
5int main(int argc, char** argv)
6{
7 auto moduleManager = skr_get_module_manager();
8 std::error_code ec = {};
9 auto root = skr::filesystem::current_path(ec);
10 moduleManager->mount(root.u8string().c_str());
11 moduleManager->make_module_graph(u8"VMemController", true);
12 auto result = moduleManager->init_module_graph(argc, argv);
13 if (result != 0) {
14 SKR_LOG_ERROR(u8"module graph init failed!");
15 }
16 moduleManager->destroy_module_graph();
17 return 0;
18}

Callers

nothing calls this directly

Calls 5

make_module_graphMethod · 0.80
destroy_module_graphMethod · 0.80
mountMethod · 0.45
c_strMethod · 0.45
init_module_graphMethod · 0.45

Tested by

no test coverage detected