diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-22 20:05:02 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-22 20:05:02 +0100 |
commit | ec69f40540317215d0f30e1f8e43d0e18450f8cc (patch) | |
tree | 1468a8d5bbf4a8800cee89c9e114d09348fa88bb /src/crepe/manager | |
parent | a600cc55468a6513743ce916aa3da129270c23f0 (diff) |
`make format`loek/game
Diffstat (limited to 'src/crepe/manager')
-rw-r--r-- | src/crepe/manager/SystemManager.cpp | 10 | ||||
-rw-r--r-- | src/crepe/manager/SystemManager.hpp | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/crepe/manager/SystemManager.cpp b/src/crepe/manager/SystemManager.cpp index c8f4f3d..fea59aa 100644 --- a/src/crepe/manager/SystemManager.cpp +++ b/src/crepe/manager/SystemManager.cpp @@ -37,7 +37,10 @@ void SystemManager::fixed_update() noexcept { try { entry.system.fixed_update(); } catch (const exception & e) { - Log::logf(Log::Level::WARNING, "Uncaught exception in {} fixed update: {}", entry.name, e.what()); + Log::logf( + Log::Level::WARNING, "Uncaught exception in {} fixed update: {}", entry.name, + e.what() + ); } } } @@ -48,7 +51,10 @@ void SystemManager::frame_update() noexcept { try { entry.system.frame_update(); } catch (const exception & e) { - Log::logf(Log::Level::WARNING, "Uncaught exception in {} frame update: {}", entry.name, e.what()); + Log::logf( + Log::Level::WARNING, "Uncaught exception in {} frame update: {}", entry.name, + e.what() + ); } } } diff --git a/src/crepe/manager/SystemManager.hpp b/src/crepe/manager/SystemManager.hpp index a4c11e3..a19a253 100644 --- a/src/crepe/manager/SystemManager.hpp +++ b/src/crepe/manager/SystemManager.hpp @@ -38,7 +38,7 @@ void SystemManager::load_system() { throw runtime_error(format("SystemManager: {} is already initialized", type.name())); System * system = new T(this->mediator); this->systems[type] = unique_ptr<System>(system); - this->system_order.push_back(SystemEntry{ + this->system_order.push_back(SystemEntry { .system = *this->systems[type], .name = type.name(), }); |