mirror of https://github.com/WerWolv/ImHex.git
fix: Opening files from command line not working
This commit is contained in:
parent
d02507ae4b
commit
b936a28921
|
@ -55,6 +55,7 @@ int main(int argc, char **argv, char **envp) {
|
||||||
|
|
||||||
// Main window
|
// Main window
|
||||||
{
|
{
|
||||||
|
Window window;
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
; // No arguments provided
|
; // No arguments provided
|
||||||
else if (argc >= 2) {
|
else if (argc >= 2) {
|
||||||
|
@ -64,7 +65,7 @@ int main(int argc, char **argv, char **envp) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Window window;
|
|
||||||
window.loop();
|
window.loop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue