From 3837f92195ca2b02221fc85f9554d83ed4ff4d44 Mon Sep 17 00:00:00 2001 From: Nezarn Date: Sat, 30 Mar 2019 13:57:35 +0100 Subject: [PATCH] Try to fix games with additional cmdline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit should fix pokkén and BG4 --- OpenParrotLoader/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenParrotLoader/src/main.cpp b/OpenParrotLoader/src/main.cpp index c2e9463..0731bf0 100644 --- a/OpenParrotLoader/src/main.cpp +++ b/OpenParrotLoader/src/main.cpp @@ -175,7 +175,7 @@ int main(int argc, char *argv[]) } FilePEFile = getPEFileInformation(argv[2]); - if (argc == 3) + if (argc == 4) { char bb[256]; sprintf(bb, "%s %s", argv[2], argv[3]); @@ -196,7 +196,7 @@ int main(int argc, char *argv[]) return 1; } } - else if (argc == 2) + else if (argc == 3) { if (!CreateProcess(argv[2], // No module name (use command line). "", // Command line.