diff --git a/src/olympic/keel/include/keel/assetmanager.hpp b/src/olympic/keel/include/keel/assetmanager.hpp index 6b461348..3daefc60 100644 --- a/src/olympic/keel/include/keel/assetmanager.hpp +++ b/src/olympic/keel/include/keel/assetmanager.hpp @@ -247,10 +247,7 @@ class AssetManager { }; ox::HashMap> m_assetTypeManagers; - struct FileTracker { - ox::Signal updated; - }; - ox::HashMap m_fileTrackers; + ox::HashMap> m_fileUpdated; template ox::Result*> getTypeManager() noexcept { @@ -282,7 +279,7 @@ class AssetManager { } ox::Error reloadAsset(ox::StringView assetId) noexcept { - m_fileTrackers[assetId].updated.emit(assetId); + m_fileUpdated[assetId].emit(assetId); return {}; } @@ -290,7 +287,7 @@ class AssetManager { ox::Result> loadAsset(ox::StringView assetId) noexcept { oxRequire(m, getTypeManager()); oxRequire(out, m->loadAsset(assetId)); - m_fileTrackers[assetId].updated.connect(m, &AssetTypeManager::reloadAsset); + m_fileUpdated[assetId].connect(m, &AssetTypeManager::reloadAsset); return out; }