diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/asset-manager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/asset-manager.cpp b/src/asset-manager.cpp index ef62600..262752c 100644 --- a/src/asset-manager.cpp +++ b/src/asset-manager.cpp @@ -246,6 +246,13 @@ void AM_GC() { auto asset_iter_fn = [](void *user_data, void *arr_obj_data) { (void)user_data; Asset &asset = *reinterpret_cast<Asset *>(arr_obj_data); + switch (asset.state) { + case PKE_ASSET_LOADING_STATE_LOADING: + fprintf(stdout, "[AM_GC] Asset '%.16s' is still loading.", asset.key); + break; + default: + void(0); + } if (asset.referenceCount > 0) { fprintf(stdout, "[AM_GC] Asset '%.16s' still in use, count: %i\n", asset.key, asset.referenceCount); return; |
