From 7d8a8e0e5254c0231be6f923c6756db1260eab3d Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 30 May 2024 20:10:44 -0500 Subject: [PATCH] [keel] Cleanup --- src/olympic/keel/include/keel/assetmanager.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; }