示例#1
0
static void StopRecording(void)
{
    MDFNMOV_RecordState();
    if(MDFN_StateEvilIsRunning())
    {
        MDFN_StateEvilFlushMovieLove();
    }
    gzclose(slots[current-1]);
    MovieStatus[current - 1] = 1;
    RecentlySavedMovie = current - 1;
    current=0;
    MDFN_DispMessage(_("Movie recording stopped."));

    if(RewindBuffer.data)
    {
        //puts("Oops");
        free(RewindBuffer.data);
        RewindBuffer.data = NULL;
    }
}
示例#2
0
void MDFN_StateEvilEnd(void)
{
 int x;

 if(!EvilEnabled)
  return;

 if(bcs)
 {
  if(MDFNMOV_IsRecording())
   MDFN_StateEvilFlushMovieLove();

  for(x = 0;x < SRW_NUM; x++)
  {

   if(bcs[x].data)
    free(bcs[x].data);
   bcs[x].data = NULL;
   bcs[x].compressed_len = 0;
  }
  free(bcs);
 }
}