summaryrefslogtreecommitdiff
path: root/src/util/asset_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/asset_manager.h')
-rw-r--r--src/util/asset_manager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/asset_manager.h b/src/util/asset_manager.h
index ed7f1aa..59bf7a0 100644
--- a/src/util/asset_manager.h
+++ b/src/util/asset_manager.h
@@ -24,3 +24,6 @@ struct AssetRecord {
// - 'out_size' returns the original asset size (excluding the null terminator).
const uint8_t* GetAsset(AssetId asset_id, size_t* out_size = nullptr);
void DropAsset(AssetId asset_id, const uint8_t* asset);
+
+// Returns the AssetId for a given asset name, or AssetId::ASSET_LAST_ID if not found.
+AssetId GetAssetIdByName(const char* name);