mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Opening files in existing instance not working
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user