patterns: Updated pattern language

This commit is contained in:
WerWolv 2023-07-21 11:53:37 +02:00
parent 7c321a79c3
commit 3149183450
2 changed files with 4 additions and 6 deletions

@ -1 +1 @@
Subproject commit 0e983745f5b3669e884990b5c43fb8df2fda2c89
Subproject commit 8bab8d3e9ab64beacac15d8b6f4015489cfc677c

View File

@ -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<std::string> 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;