Mercurial > vba-linux
diff src/common/movie.cpp @ 39:3e36553d0cbf
got some speedruns to work!
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 05 Mar 2012 16:37:38 -0600 |
parents | 47a513ea3529 |
children |
line wrap: on
line diff
1.1 --- a/src/common/movie.cpp Mon Mar 05 15:06:22 2012 -0600 1.2 +++ b/src/common/movie.cpp Mon Mar 05 16:37:38 2012 -0600 1.3 @@ -928,7 +928,7 @@ 1.4 change_state(MOVIE_STATE_NONE); // stop current movie when we're able to open the other one 1.5 1.6 // clear out the current movie 1.7 - printf("RLM: movie init\n"); 1.8 + //printf("RLM: movie init\n"); 1.9 1.10 VBAMovieInit(); 1.11 1.12 @@ -949,16 +949,16 @@ 1.13 // set ROM and BIOS checksums and stuff 1.14 VBAMovieGetRomInfo(Movie, Movie.header.romTitle, Movie.header.romGameCode, Movie.header.romOrBiosChecksum, Movie.header.romCRC); 1.15 1.16 - printf("RLM: Writing movie header\n"); 1.17 + //printf("RLM: Writing movie header\n"); 1.18 // write the header to file 1.19 write_movie_header(file, Movie); 1.20 1.21 - printf("RLM: setting metadata\n"); 1.22 + //printf("RLM: setting metadata\n"); 1.23 1.24 // copy over the metadata / author info 1.25 VBAMovieSetMetadata("________________Robert McIntyre______________________________________________________________________________________________________________________________________________________________________________________________________________________"); 1.26 1.27 - printf("RLM: writing metadata\n"); 1.28 + //printf("RLM: writing metadata\n"); 1.29 1.30 // write the metadata / author info to file 1.31 1.32 @@ -1169,7 +1169,7 @@ 1.33 void VBAMovieUpdateState() 1.34 { 1.35 ++Movie.currentFrame; 1.36 - printf("RLM: inside updateState\n"); 1.37 + //printf("RLM: inside updateState\n"); 1.38 if (Movie.state == MOVIE_STATE_PLAY) 1.39 { 1.40 Movie.inputBufferPtr += Movie.bytesPerFrame; 1.41 @@ -1181,14 +1181,14 @@ 1.42 } 1.43 else if (Movie.state == MOVIE_STATE_RECORD) 1.44 { 1.45 - printf("RLM: Movie_STATE_RECORD\n"); 1.46 + //printf("RLM: Movie_STATE_RECORD\n"); 1.47 VBAMovieWrite(0,true); 1.48 // use first fseek? 1.49 //TODO: THis is the problem. 1.50 if (Movie.inputBuffer){ 1.51 fwrite(Movie.inputBufferPtr, 1, Movie.bytesPerFrame, Movie.file); 1.52 } 1.53 - printf("RLM: write successful.\n"); 1.54 + //printf("RLM: write successful.\n"); 1.55 Movie.header.length_frames = Movie.currentFrame; 1.56 Movie.inputBufferPtr += Movie.bytesPerFrame; 1.57 Movie.RecordedThisSession = true; 1.58 @@ -1216,9 +1216,12 @@ 1.59 { 1.60 currentButtons[i] = 0; // pretend the controller is disconnected 1.61 } 1.62 - 1.63 - if ((currentButtons[i] & BUTTON_MASK_NEW_RESET) != 0) 1.64 + 1.65 + printf("RLM: button %d\n",currentButtons[i]); 1.66 + if ((currentButtons[i] & BUTTON_MASK_NEW_RESET) != 0){ 1.67 + printf("RLM: reset signaled\n"); 1.68 resetSignaled = true; 1.69 + } 1.70 } 1.71 1.72 void VBAMovieWrite(int i, bool /*sensor*/) 1.73 @@ -1235,7 +1238,7 @@ 1.74 { 1.75 // get the current controller data 1.76 uint16 buttonData = currentButtons[i]; 1.77 - printf("RLM: currentButtons %i\n", currentButtons[0]); 1.78 + //printf("RLM: currentButtons %i\n", currentButtons[0]); 1.79 1.80 // mask away the irrelevent bits 1.81 buttonData &= BUTTON_REGULAR_MASK | BUTTON_MOTION_MASK; 1.82 @@ -1669,7 +1672,7 @@ 1.83 1.84 fflush(Movie.file); 1.85 } 1.86 - printf("RLM: setMetadata called\n"); 1.87 + //printf("RLM: setMetadata called\n"); 1.88 1.89 } 1.90