Movie file format header now has a FDS flag.

This commit is contained in:
adelikat 2010-03-02 04:59:45 +00:00
parent 9149cf5326
commit 86f60b1371
5 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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;

View File

@ -1,3 +1,4 @@
extern bool isFDS;
void FDSSoundReset(void);
void FCEU_FDSInsert(void);

View File

@ -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<comments.size();i++)
*os << "comment " << wcstombs(comments[i]) << endl;

View File

@ -161,6 +161,7 @@ public:
int version;
int emuVersion;
int fds;
//todo - somehow force mutual exclusion for poweron and reset (with an error in the parser)
bool palFlag;
MD5DATA romChecksum;