Skip to content

Commit

Permalink
WIP- fix passing cart
Browse files Browse the repository at this point in the history
  • Loading branch information
jtothebell committed Jan 16, 2024
1 parent 486ee1b commit d4eea2f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ int main(int argc, char* argv[])
cart = strstr(boot_params, "&param=") + 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

Expand Down

0 comments on commit d4eea2f

Please sign in to comment.