| 87 | } |
| 88 | |
| 89 | void SCookContextImpl::_Destroy(void* resource) |
| 90 | { |
| 91 | if(!importer) |
| 92 | { |
| 93 | SKR_LOG_ERROR(u8"[SCookContext::Cook] importer failed to load, asset path path: %s", record->path.u8string().c_str()); |
| 94 | } |
| 95 | SKR_DEFER({ SkrDelete(importer); }); |
| 96 | //-----import raw data |
| 97 | importer->Destroy(resource); |
| 98 | SKR_LOG_INFO(u8"[SCookContext::Cook] asset freed for asset: %s", record->path.u8string().c_str()); |
| 99 | } |
| 100 | |
| 101 | void* SCookContextImpl::_Import() |
| 102 | { |