summaryrefslogtreecommitdiff
path: root/src/util/asset_manager.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-09 17:35:32 +0100
committerskal <pascal.massimino@gmail.com>2026-02-09 17:35:32 +0100
commitd5f78a4c2e7b626a492643efd62ddeb394276722 (patch)
treecdf38c3d64f6bf417975ce396572fc425d6f8910 /src/util/asset_manager.h
parent802e97ee695de1bc8657c5cbca653bb2f13b90a8 (diff)
feat: Add debug-only file change detection for rapid iteration
Enables --hot-reload flag to watch config files and notify on changes. Detects modifications to assets/sequences/music for rebuild workflow. Completely stripped from release builds (0 bytes overhead). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/util/asset_manager.h')
-rw-r--r--src/util/asset_manager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/asset_manager.h b/src/util/asset_manager.h
index 168bfca..1714c21 100644
--- a/src/util/asset_manager.h
+++ b/src/util/asset_manager.h
@@ -29,3 +29,8 @@ 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);
+
+#if !defined(STRIP_ALL)
+// Hot-reload: Parse and reload assets from config file (debug only)
+bool ReloadAssetsFromFile(const char* config_path);
+#endif