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

Method on_load

modules/tools/asset_tool/main.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void SAssetImportModule::on_load(int argc, char8_t** argv)
52{
53 SKR_LOG_INFO(u8"live2d viewer loaded!");
54
55 std::error_code ec = {};
56 auto resourceRoot = (skr::filesystem::current_path(ec) / "../resources").u8string();
57 skr_vfs_desc_t vfs_desc = {};
58 vfs_desc.mount_type = SKR_MOUNT_TYPE_CONTENT;
59 vfs_desc.override_mount_dir = resourceRoot.c_str();
60 resource_vfs = skr_create_vfs(&vfs_desc);
61}
62
63void SAssetImportModule::on_unload()
64{

Callers

nothing calls this directly

Calls 2

skr_create_vfsFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected