1
0
mirror of synced 2025-02-02 12:27:25 +01:00

fix: Opening files in existing instance not working

This commit is contained in:
WerWolv 2025-01-23 19:22:40 +01:00
parent 69c5d553b5
commit a6b4f62d75
2 changed files with 5 additions and 5 deletions

View File

@ -65,9 +65,6 @@ namespace hex::init {
PluginManager::load(dir); PluginManager::load(dir);
} }
// Setup messaging system to allow sending commands to the main ImHex instance
hex::messaging::setupMessaging();
// Process the arguments // Process the arguments
hex::subcommands::processArguments(args); hex::subcommands::processArguments(args);

View File

@ -4,8 +4,8 @@
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>
#include "window.hpp" #include <window.hpp>
#include "init/splash_window.hpp" #include <messaging.hpp>
#include "crash_handlers.hpp" #include "crash_handlers.hpp"
@ -38,6 +38,9 @@ int main(int argc, char **argv) {
// Run platform-specific initialization code // Run platform-specific initialization code
Window::initNative(); Window::initNative();
// Setup messaging system to allow sending commands to the main ImHex instance
hex::messaging::setupMessaging();
// Handle command line arguments if any have been passed // Handle command line arguments if any have been passed
if (argc > 1) { if (argc > 1) {
init::runCommandLine(argc, argv); init::runCommandLine(argc, argv);