diff --git a/changelog.txt b/changelog.txt index 3d0f38c2..7d85879c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,4 @@ +01-march-2010 - adelikat - Movie file format header now has a FDS flag 01-march-2010 - adelikat - win32 - cheats dialog - toggling a cheat in the cheats list now updates the active cheats count 01-march-2010 - adelikat - win32 - a disable movie messages menu item 25-feb-2010 - prockguy - unix netplay is now functional; gtk network gui created diff --git a/src/fds.cpp b/src/fds.cpp index 7ee3075e..300fa576 100644 --- a/src/fds.cpp +++ b/src/fds.cpp @@ -43,6 +43,8 @@ // when the virtual motor is on(mmm...virtual motor). extern int disableBatteryLoading; +bool isFDS = false; //flag for determining if a FDS game is loaded, movie.cpp needs this + static DECLFR(FDSRead4030); static DECLFR(FDSRead4031); static DECLFR(FDSRead4032); @@ -833,6 +835,7 @@ int FDSLoad(const char *name, FCEUFILE *fp) GameInfo->type=GIT_FDS; GameInterface=FDSGI; + isFDS = true; SelectDisk=0; InDisk=255; @@ -877,6 +880,7 @@ void FDSClose(void) { FILE *fp; int x; + isFDS = false; char *fn=strdup(FCEU_MakeFName(FCEUMKF_FDS,0,0).c_str()); if(!DiskWritten) return; diff --git a/src/fds.h b/src/fds.h index 4269d70f..ded2e3ec 100644 --- a/src/fds.h +++ b/src/fds.h @@ -1,3 +1,4 @@ +extern bool isFDS; void FDSSoundReset(void); void FCEU_FDSInsert(void); diff --git a/src/movie.cpp b/src/movie.cpp index 0f34abd3..9bebcf43 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -344,6 +344,8 @@ void MovieData::truncateAt(int frame) void MovieData::installValue(std::string& key, std::string& val) { //todo - use another config system, or drive this from a little data structure. because this is gross + if(key == "FDS") + installInt(val,fds); if(key == "version") installInt(val,version); else if(key == "emuVersion") @@ -402,6 +404,7 @@ int MovieData::dump(std::ostream *os, bool binary) *os << "port0 " << ports[0] << endl; *os << "port1 " << ports[1] << endl; *os << "port2 " << ports[2] << endl; + *os << "FDS " << isFDS << endl; for(uint32 i=0;i