re-add start from reset flag

This commit is contained in:
zeromus 2008-05-23 04:11:35 +00:00
parent 047808ba93
commit 91733a146a
2 changed files with 10 additions and 12 deletions

View File

@ -175,9 +175,13 @@ void FCEUI_LoadState(char *fname);
void FCEUD_SaveStateAs(void);
void FCEUD_LoadStateFrom(void);
//movie was recorded from poweron. the alternative is from a savestate
//movie was recorded from poweron. the alternative is from a savestate (or from reset)
#define MOVIE_FLAG_FROM_POWERON (1<<3)
//an ARCHAIC flag which means the movie was recorded from a soft reset.
//WHY would you do this?? do not create any new movies with this flag
#define MOVIE_FLAG_FROM_RESET (1<<1)
#define MOVIE_FLAG_PAL (1<<2)
#define MOVIE_MAX_METADATA 512

View File

@ -671,17 +671,11 @@ void FCEUI_SaveMovie(char *fname, uint8 flags, const char* metadata)
framets=0;
nextd = -1;
//mbg 5/22/08 - I didnt delete this because I thought it was interesting
//// trigger a reset
//if(flags & MOVIE_FLAG_FROM_RESET)
//{
// if(poweron)
// {
// PowerNES(); // NOTE: this will write an FCEUNPCMD_POWER into the movie file
// }
// else
// ResetNES(); // NOTE: this will write an FCEUNPCMD_RESET into the movie file
//}
// trigger a reset
if(flags & MOVIE_FLAG_FROM_RESET)
{
ResetNES(); // NOTE: this will write an FCEUNPCMD_RESET into the movie file
}
if(!fname)
FCEUI_SelectMovie(CurrentMovie,1); /* Quick hack to display status. */