diff options
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)); } |