feat: Added basic network interface support

This commit is contained in:
WerWolv
2023-05-15 11:30:24 +02:00
parent e685d65be8
commit c006062540
12 changed files with 194 additions and 2 deletions

View File

@@ -325,6 +325,11 @@ namespace hex::init {
ContentRegistry::FileHandler::impl::getEntries().clear();
ContentRegistry::Hashes::impl::getHashes().clear();
ContentRegistry::BackgroundServices::impl::stopServices();
ContentRegistry::BackgroundServices::impl::getServices().clear();
ContentRegistry::CommunicationInterface::impl::getNetworkEndpoints().clear();
LayoutManager::reset();
ThemeManager::reset();

View File

@@ -164,7 +164,9 @@ namespace hex {
}
this->m_windowTitle = title;
glfwSetWindowTitle(this->m_window, title.c_str());
if (this->m_window != nullptr)
glfwSetWindowTitle(this->m_window, title.c_str());
});
constexpr static auto CrashBackupFileName = "crash_backup.hexproj";
@@ -1012,6 +1014,8 @@ namespace hex {
void Window::exitGLFW() {
glfwDestroyWindow(this->m_window);
glfwTerminate();
this->m_window = nullptr;
}
void Window::exitImGui() {