From 31491834502dbb79789237c950632b71c685ed99 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 21 Jul 2023 11:53:37 +0200 Subject: [PATCH] patterns: Updated pattern language --- lib/external/pattern_language | 2 +- main/source/main.cpp | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/external/pattern_language b/lib/external/pattern_language index 0e983745f..8bab8d3e9 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit 0e983745f5b3669e884990b5c43fb8df2fda2c89 +Subproject commit 8bab8d3e9ab64beacac15d8b6f4015489cfc677c diff --git a/main/source/main.cpp b/main/source/main.cpp index 16f5ae0e5..b560ab343 100644 --- a/main/source/main.cpp +++ b/main/source/main.cpp @@ -27,11 +27,10 @@ void loadPlugins() { } } -int main(int argc, char **argv, char **envp) { +int main(int argc, char **argv) { Window::initNative(); hex::crash::setupCrashHandlers(); - hex::unused(envp); std::vector args(argv + 1, argv + argc); @@ -79,14 +78,13 @@ int main(int argc, char **argv, char **envp) { log::info("Using '{}' GPU", ImHexApi::System::getGPUVendor()); // Clean up everything after the main window is closed - auto exitHandler = [](auto){ + ON_SCOPE_EXIT { for (const auto &[name, task, async] : init::getExitTasks()) task(); + TaskManager::exit(); }; - ON_SCOPE_EXIT { exitHandler(0); }; - // Main window { Window window;