diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-02-03 09:26:37 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-02-03 09:26:37 +1100 |
commit | b53b8ecca0e7690d8ddffbcad21d229851d5205d (patch) | |
tree | 5f1a8fd6d65b77870aaea78dd8fb5995611f72b3 /source/game/StarRoot.cpp | |
parent | 56f384a2acef619f287db700f48e8f1a3ec71e61 (diff) |
add /hotreload
Diffstat (limited to 'source/game/StarRoot.cpp')
-rw-r--r-- | source/game/StarRoot.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/game/StarRoot.cpp b/source/game/StarRoot.cpp index fbf818f..e429646 100644 --- a/source/game/StarRoot.cpp +++ b/source/game/StarRoot.cpp @@ -371,6 +371,11 @@ void Root::registerReloadListener(ListenerWeakPtr reloadListener) { m_reloadListeners.addListener(std::move(reloadListener)); } +void Root::hotReload() { + assets()->hotReload(); + m_reloadListeners.trigger(); +} + String Root::toStoragePath(String const& path) const { return File::relativeTo(m_settings.storageDirectory, File::convertDirSeparators(path)); } |