mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
patterns: Updated pattern language
This commit is contained in:
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
Submodule lib/external/pattern_language updated: 0e983745f5...8bab8d3e9a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user