diff src/sdl/SDL.cpp @ 39:3e36553d0cbf

got some speedruns to work!
author Robert McIntyre <rlm@mit.edu>
date Mon, 05 Mar 2012 16:37:38 -0600
parents 44974c3e093b
children 139178c4d843
line wrap: on
line diff
     1.1 --- a/src/sdl/SDL.cpp	Mon Mar 05 15:06:22 2012 -0600
     1.2 +++ b/src/sdl/SDL.cpp	Mon Mar 05 16:37:38 2012 -0600
     1.3 @@ -1966,8 +1966,8 @@
     1.4  
     1.5  void file_run()
     1.6  {
     1.7 -  printf("RLM: file_run\n");
     1.8 -    utilGetBaseName(szFile, filename);
     1.9 +  //printf("RLM: file_run\n");
    1.10 +  utilGetBaseName(szFile, filename);
    1.11      char *p = strrchr(filename, '.');
    1.12  
    1.13      if(p)
    1.14 @@ -1990,7 +1990,7 @@
    1.15        failed = !gbLoadRom(szFile);
    1.16        if(!failed) {
    1.17          systemCartridgeType = 1;
    1.18 -        printf("RLM: choosing GBSystem\n");
    1.19 +        //printf("RLM: choosing GBSystem\n");
    1.20  	theEmulator = GBSystem;
    1.21          if(sdlAutoIPS) {
    1.22            int size = gbRomSize;
    1.23 @@ -2273,8 +2273,8 @@
    1.24      }
    1.25    }
    1.26  
    1.27 -  printf("RLM: derpy loves you!\n");
    1.28 -  printf("RLM: useMovie: %d (1 is record)\n", useMovie);
    1.29 +  //printf("RLM: derpy loves you!\n");
    1.30 +  //printf("RLM: useMovie: %d (1 is record)\n", useMovie);
    1.31    if(sdlPrintUsage) {
    1.32      usage(argv[0]);
    1.33      exit(-1);
    1.34 @@ -2321,7 +2321,7 @@
    1.35    {
    1.36        szFile = argv[optind];
    1.37        file_run();
    1.38 -      printf("RLM: file_run() done\n");
    1.39 +      //printf("RLM: file_run() done\n");
    1.40    }
    1.41     else 
    1.42    {
    1.43 @@ -2620,7 +2620,7 @@
    1.44      soundInit();
    1.45  
    1.46    autoFrameSkipLastTime = throttleLastTime = systemGetClock();
    1.47 -  printf("RLM: and now for the movie part!\n");
    1.48 +  //printf("RLM: and now for the movie part!\n");
    1.49  
    1.50    switch(useMovie)
    1.51    {
    1.52 @@ -2641,7 +2641,7 @@
    1.53      	sdlReadBattery();
    1.54    	  break;
    1.55    }
    1.56 -  printf("RLM: still alive after movie switch\n");
    1.57 +  //printf("RLM: still alive after movie switch\n");
    1.58    SDL_WM_SetCaption("VisualBoyAdvance", NULL);
    1.59    
    1.60    char *moviefile = getenv("AUTODEMO");
    1.61 @@ -2657,9 +2657,9 @@
    1.62        if(debugger && theEmulator.emuHasDebugger)
    1.63          dbgMain();
    1.64        else {
    1.65 -	printf("RLM: emulator main\n");
    1.66 +	//printf("RLM: emulator main\n");
    1.67  	theEmulator.emuMain(theEmulator.emuCount);
    1.68 -	printf("RLM: emulator main called\n");
    1.69 +	//printf("RLM: emulator main called\n");
    1.70          if(rewindSaveNeeded && rewindMemory && theEmulator.emuWriteMemState) {
    1.71            rewindCount++;
    1.72            if(rewindCount > 8)
    1.73 @@ -3614,7 +3614,7 @@
    1.74  
    1.75  void VBAOnEnteringFrameBoundary()
    1.76  {
    1.77 -  printf("RLM: Entering Frame Boundary\n");
    1.78 +  //printf("RLM: Entering Frame Boundary\n");
    1.79    CallRegisteredLuaFunctions(LUACALL_AFTEREMULATION);
    1.80  
    1.81    if (VBALuaRunning())
    1.82 @@ -3622,9 +3622,9 @@
    1.83  	  VBALuaFrameBoundary();
    1.84    	}
    1.85  
    1.86 -  printf("RLM: Movie state update pending\n");
    1.87 +  //printf("RLM: Movie state update pending\n");
    1.88    VBAMovieUpdateState();
    1.89 -  printf("RLM: Movie state updated\n");
    1.90 +  //printf("RLM: Movie state updated\n");
    1.91  }
    1.92  
    1.93  void VBAOnExitingFrameBoundary()