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

Function main

samples/application/game/src/main.cpp:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "SkrProfile/profile.h"
7
8int main(int argc, char** argv)
9{
10 SkrZoneScopedN("Main");
11
12 auto moduleManager = skr_get_module_manager();
13 std::error_code ec = {};
14 auto root = skr::filesystem::current_path(ec);
15 moduleManager->mount(root.u8string().c_str());
16 moduleManager->make_module_graph(u8"Game", true);
17 auto result = moduleManager->init_module_graph(argc, argv);
18 if (result != 0) {
19 SKR_LOG_ERROR(u8"module graph init failed!");
20 }
21 moduleManager->destroy_module_graph();
22 return 0;
23}

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