From c669f71706b965606df6690cf2af71dcaa0915e6 Mon Sep 17 00:00:00 2001 From: rakslice Date: Sat, 15 Feb 2025 23:40:20 -0800 Subject: [PATCH] SheepShaver Windows: fix command-line args processing --- SheepShaver/src/Windows/main_windows.cpp | 26 +++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/SheepShaver/src/Windows/main_windows.cpp b/SheepShaver/src/Windows/main_windows.cpp index 834ffab7..01a17746 100644 --- a/SheepShaver/src/Windows/main_windows.cpp +++ b/SheepShaver/src/Windows/main_windows.cpp @@ -184,6 +184,8 @@ int main(int argc, char **argv) printf(" %s\n", GetString(STR_ABOUT_TEXT2)); // Parse command line arguments + + // Check for options we want to process before PrefsInit for (int i=1; i i) { + k -= i; + for (int j=i+k; j