fix: Opening files in existing instance not working
This commit is contained in:
parent
69c5d553b5
commit
a6b4f62d75
@ -65,9 +65,6 @@ namespace hex::init {
|
||||
PluginManager::load(dir);
|
||||
}
|
||||
|
||||
// Setup messaging system to allow sending commands to the main ImHex instance
|
||||
hex::messaging::setupMessaging();
|
||||
|
||||
// Process the arguments
|
||||
hex::subcommands::processArguments(args);
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
#include <hex/helpers/logger.hpp>
|
||||
|
||||
#include "window.hpp"
|
||||
#include "init/splash_window.hpp"
|
||||
#include <window.hpp>
|
||||
#include <messaging.hpp>
|
||||
|
||||
#include "crash_handlers.hpp"
|
||||
|
||||
@ -38,6 +38,9 @@ int main(int argc, char **argv) {
|
||||
// Run platform-specific initialization code
|
||||
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
|
||||
if (argc > 1) {
|
||||
init::runCommandLine(argc, argv);
|
||||
|
Loading…
x
Reference in New Issue
Block a user