Flip argn and args in main function (to properly correspond to the main prototype).

mac-build
sigonasr2 6 months ago
parent b46350ac78
commit 0b84e69709
  1. 6
      Adventures in Lestoria/AdventuresInLestoria.cpp

@ -2944,7 +2944,7 @@ bool Steam_Init(){
return false;
}
int main(char**args,const int argn)
int main(const int argn,char**args)
{
debugLogger.open("debug.log");
LOG(std::format("Found {} args",argn));
@ -3087,8 +3087,8 @@ int main(char**args,const int argn)
get_command_line_args( &argc, &argv );
for(int n = 0;n < argc;n++)
printf( " %d : %s\n", n, argv[n] );
main(argv,argc);
printf( " %d : %s\n", n, argv[n] );
main(argc,argv);
free( argv );
}
#endif

Loading…
Cancel
Save