From ac86029f7d179e1b0996cfcdd00281ea850b14a2 Mon Sep 17 00:00:00 2001 From: pv
Date: Sun, 6 Aug 2023 03:54:49 +0300
Subject: [PATCH] Update shared lib
---
lib/Core/Foundation/Application.cpp | 8 ++++++--
lib/Core/Foundation/Application.hpp | 6 ++++--
lib/Core/Raw.hpp | 30 +++++++++++++++++++++++++----
lib/Red/TypeInfo/Invocation.hpp | 24 +++++++++++++++++++++--
4 files changed, 58 insertions(+), 10 deletions(-)
diff --git a/lib/Core/Foundation/Application.cpp b/lib/Core/Foundation/Application.cpp
index c8ce9a8..c264adb 100644
--- a/lib/Core/Foundation/Application.cpp
+++ b/lib/Core/Foundation/Application.cpp
@@ -7,12 +7,14 @@ void Core::Application::Bootstrap()
m_booted = true;
+ OnStarting();
+
for (const auto& feature : GetRegistered())
{
feature->OnBootstrap();
}
- OnBootstrap();
+ OnStarted();
}
void Core::Application::Shutdown()
@@ -20,13 +22,15 @@ void Core::Application::Shutdown()
if (!m_booted)
return;
- OnShutdown();
+ OnStopping();
for (const auto& feature : GetRegistered())
{
feature->OnShutdown();
}
+ OnStopped();
+
m_booted = false;
}
diff --git a/lib/Core/Foundation/Application.hpp b/lib/Core/Foundation/Application.hpp
index b2a1f39..b38eaf0 100644
--- a/lib/Core/Foundation/Application.hpp
+++ b/lib/Core/Foundation/Application.hpp
@@ -21,8 +21,10 @@ class Application : public Registry