Movie file format header now has a FDS flag.
This commit is contained in:
parent
9149cf5326
commit
86f60b1371
|
@ -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 - 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
|
01-march-2010 - adelikat - win32 - a disable movie messages menu item
|
||||||
25-feb-2010 - prockguy - unix netplay is now functional; gtk network gui created
|
25-feb-2010 - prockguy - unix netplay is now functional; gtk network gui created
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
// when the virtual motor is on(mmm...virtual motor).
|
// when the virtual motor is on(mmm...virtual motor).
|
||||||
extern int disableBatteryLoading;
|
extern int disableBatteryLoading;
|
||||||
|
|
||||||
|
bool isFDS = false; //flag for determining if a FDS game is loaded, movie.cpp needs this
|
||||||
|
|
||||||
static DECLFR(FDSRead4030);
|
static DECLFR(FDSRead4030);
|
||||||
static DECLFR(FDSRead4031);
|
static DECLFR(FDSRead4031);
|
||||||
static DECLFR(FDSRead4032);
|
static DECLFR(FDSRead4032);
|
||||||
|
@ -833,6 +835,7 @@ int FDSLoad(const char *name, FCEUFILE *fp)
|
||||||
|
|
||||||
GameInfo->type=GIT_FDS;
|
GameInfo->type=GIT_FDS;
|
||||||
GameInterface=FDSGI;
|
GameInterface=FDSGI;
|
||||||
|
isFDS = true;
|
||||||
|
|
||||||
SelectDisk=0;
|
SelectDisk=0;
|
||||||
InDisk=255;
|
InDisk=255;
|
||||||
|
@ -877,6 +880,7 @@ void FDSClose(void)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
int x;
|
int x;
|
||||||
|
isFDS = false;
|
||||||
char *fn=strdup(FCEU_MakeFName(FCEUMKF_FDS,0,0).c_str());
|
char *fn=strdup(FCEU_MakeFName(FCEUMKF_FDS,0,0).c_str());
|
||||||
|
|
||||||
if(!DiskWritten) return;
|
if(!DiskWritten) return;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
extern bool isFDS;
|
||||||
void FDSSoundReset(void);
|
void FDSSoundReset(void);
|
||||||
|
|
||||||
void FCEU_FDSInsert(void);
|
void FCEU_FDSInsert(void);
|
||||||
|
|
|
@ -344,6 +344,8 @@ void MovieData::truncateAt(int frame)
|
||||||
void MovieData::installValue(std::string& key, std::string& val)
|
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
|
//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")
|
if(key == "version")
|
||||||
installInt(val,version);
|
installInt(val,version);
|
||||||
else if(key == "emuVersion")
|
else if(key == "emuVersion")
|
||||||
|
@ -402,6 +404,7 @@ int MovieData::dump(std::ostream *os, bool binary)
|
||||||
*os << "port0 " << ports[0] << endl;
|
*os << "port0 " << ports[0] << endl;
|
||||||
*os << "port1 " << ports[1] << endl;
|
*os << "port1 " << ports[1] << endl;
|
||||||
*os << "port2 " << ports[2] << endl;
|
*os << "port2 " << ports[2] << endl;
|
||||||
|
*os << "FDS " << isFDS << endl;
|
||||||
|
|
||||||
for(uint32 i=0;i<comments.size();i++)
|
for(uint32 i=0;i<comments.size();i++)
|
||||||
*os << "comment " << wcstombs(comments[i]) << endl;
|
*os << "comment " << wcstombs(comments[i]) << endl;
|
||||||
|
|
|
@ -161,6 +161,7 @@ public:
|
||||||
|
|
||||||
int version;
|
int version;
|
||||||
int emuVersion;
|
int emuVersion;
|
||||||
|
int fds;
|
||||||
//todo - somehow force mutual exclusion for poweron and reset (with an error in the parser)
|
//todo - somehow force mutual exclusion for poweron and reset (with an error in the parser)
|
||||||
bool palFlag;
|
bool palFlag;
|
||||||
MD5DATA romChecksum;
|
MD5DATA romChecksum;
|
||||||
|
|
Loading…
Reference in New Issue