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

Method Unload

modules/engine/runtime/src/resource/resource_factory.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35bool SResourceFactory::Unload(skr_resource_record_t* record)
36{
37 record->header.dependencies.clear();
38 if (record->destructor)
39 record->destructor(record->resource);
40#ifdef SKR_RESOURCE_DEV_MODE
41 if (record->artifactsDestructor)
42 record->artifactsDestructor(record->artifacts);
43#endif
44 return true;
45}
46
47ESkrInstallStatus SResourceFactory::UpdateInstall(skr_resource_record_t* record)
48{

Callers 1

UpdateMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected