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

Function main

modules/tools/asset_tool/main.cpp:280–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278
279
280int main(int argc, char** argv)
281{
282 auto moduleManager = skr_get_module_manager();
283 std::error_code ec = {};
284 auto root = skr::filesystem::current_path(ec);
285 moduleManager->mount(root.u8string().c_str());
286 moduleManager->make_module_graph(u8"SkrAssetImport", true);
287 auto result = moduleManager->init_module_graph(argc, argv);
288 if (result != 0) {
289 SKR_LOG_ERROR(u8"module graph init failed!");
290 }
291 moduleManager->destroy_module_graph();
292 return 0;
293}

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