commit d4eea2fbf9b51b779443f38e4f0e4226f02cf174
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Mon Jan 15 21:47:04 2024 -0700
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Mon Jan 15 21:47:04 2024 -0700
WIP- fix passing cart
---
source/main.cpp | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/source/main.cpp b/source/main.cpp
index ec98594..277434d 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -72,12 +72,10 @@ int main(int argc, char* argv[])
cart = strstr(boot_params, "¶m=") + 7;
}
#else
- if (argc > 1) {
- //ugly hack for backward compat - single argument. w/h need to be passed after
- if (argv[1][0] != '-') {
- cart = argv[1];
- loadCart = true;
- }
+ int index;
+ for (index = optind; index < argc; index++) {
+ cart = argv[index];
+ loadCart = true;
}
#endif