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

pull/57/head
sigonasr2 6 months ago
parent cd10f12590
commit b6c88a0caa
  1. 4
      Adventures in Lestoria/AdventuresInLestoria.cpp

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

Loading…
Cancel
Save