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

Function main

modules/tools/resource_compiler/main.cpp:203–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203int main(int argc, char** argv)
204{
205 auto moduleManager = skr_get_module_manager();
206 std::error_code ec = {};
207 auto root = skr::filesystem::current_path(ec);
208 {
209 FrameMark;
210 SkrZoneScopedN("Initialize");
211 moduleManager->mount(root.u8string().c_str());
212 moduleManager->make_module_graph(u8"SkrResourceCompiler", true);
213 moduleManager->init_module_graph(argc, argv);
214 }
215 {
216 FrameMark;
217 SkrZoneScopedN("CompileAll");
218 compile_all(argc, argv);
219 }
220 {
221 FrameMark;
222 SkrZoneScopedN("ThreadExit");
223 moduleManager->destroy_module_graph();
224 }
225 return 0;
226}

Callers

nothing calls this directly

Calls 6

compile_allFunction · 0.85
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