static void retro_load_game(int argc, char *argv[]) { CheckParameters(argc, argv); CheckForEpisodes(); InitGame(); }
//------------------------------------------------------------------------- // freed_main() //------------------------------------------------------------------------- void freed_main() { // Setup for APOGEECD thingie. // InitDestPath(); // Make sure there's room to play the game // CheckDiskSpace(DISK_SPACE_NEEDED,CANT_PLAY_TXT,cds_dos_print); // Which version is this? (SHAREWARE? 1-3? 1-6?) // CheckForEpisodes(); std::string arg; switch (::g_args.check_argument(MainStrs, arg)) { #if IN_DEVELOPMENT || TECH_SUPPORT_VERSION case 0: // quick run gamestate.flags |= GS_QUICKRUN; case 1: // no wait gamestate.flags |= GS_NOWAIT; break; #endif case 2: // starting level gamestate.flags |= GS_STARTLEVEL; starting_level=scan_atoi(arg.c_str()); break; case 3: gamestate.flags |= GS_STARTLEVEL; starting_episode=scan_atoi(arg.c_str())-1; break; case 4: fprint(cinfo_text); printf("\n" " Version: %s\n" "COMPILE DATE: %s\n\n", __BLAKE_VERSION__,__DATE__); exit(0); break; case 5: ShowSystem(); exit(0); break; #if IN_DEVELOPMENT #ifdef DEBUG_VALUE case 6: debug_value=scan_atoi(g_argv[i]); break; #endif #endif case 7: gamestate.flags |= GS_TICS_FOR_SCORE; break; case 8: // gamestate.flags |= GS_MEM_FOR_SCORE; break; case 9: PowerBall = 1; break; case 11: gamestate.flags |= GS_STARTLEVEL; starting_difficulty=scan_atoi(arg.c_str())-1; break; case 10: gamestate.flags |= GS_MUSIC_TEST; break; case 12: gamestate.flags |= GS_SHOW_OVERHEAD; break; } #if BETA_TEST // // THIS IS FOR BETA ONLY! // _dos_getdate(&d); if ((d.year > BETA_YEAR) || ((d.year == BETA_YEAR) && (d.month > BETA_MONTH)) || ((d.year == BETA_YEAR) && (d.month == BETA_MONTH) && (d.day >= BETA_DAY))) { FILE *out; char name[20]="VSWAP."; strcat(name,extension); out = fopen(name,"w"); fprintf(out,"\n\n SELF DESTRUCTED \n"); fclose(out); remove("vswap.bs1"); fprint(dver_text); exit(0); } #endif InitGame (); bufferofs=SCREENSIZE; PreDemo(); }