mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
fix: Opening files in existing instance not working
This commit is contained in:
@@ -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