Removed file existence checks to determine game version and added game flags instead. Added the MD5 of the English floppy version of Return to Zork
svn-id: r31670
This commit is contained in:
parent
347eb2dc07
commit
1a6bd23780
3 changed files with 31 additions and 7 deletions
|
@ -85,7 +85,7 @@ static const MadeGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
GF_CD_COMPRESSED,
|
||||||
0,
|
0,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -101,7 +101,23 @@ static const MadeGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
GF_CD,
|
||||||
0,
|
0,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
// Return to Zork - English floppy version
|
||||||
|
{
|
||||||
|
"rtz",
|
||||||
|
"Floppy",
|
||||||
|
AD_ENTRY1("rtz.prj", "764d02f52ce1c219f2c0066677fba4ce"),
|
||||||
|
Common::EN_ANY,
|
||||||
|
Common::kPlatformPC,
|
||||||
|
Common::ADGF_NO_FLAGS
|
||||||
|
},
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
GF_FLOPPY,
|
||||||
0,
|
0,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -143,12 +143,17 @@ int MadeEngine::go() {
|
||||||
if (getFeatures() & GF_DEMO) {
|
if (getFeatures() & GF_DEMO) {
|
||||||
_dat->open("demo.dat");
|
_dat->open("demo.dat");
|
||||||
_res->open("demo.prj");
|
_res->open("demo.prj");
|
||||||
} else {
|
} else if (getFeatures() & GF_CD) {
|
||||||
if (Common::File::exists("rtzcd.dat"))
|
_dat->open("rtzcd.dat");
|
||||||
_dat->open("rtzcd.dat");
|
|
||||||
else
|
|
||||||
_dat->openFromRed("rtzcd.red", "rtzcd.dat");
|
|
||||||
_res->open("rtzcd.prj");
|
_res->open("rtzcd.prj");
|
||||||
|
} else if (getFeatures() & GF_CD_COMPRESSED) {
|
||||||
|
_dat->openFromRed("rtzcd.red", "rtzcd.dat");
|
||||||
|
_res->open("rtzcd.prj");
|
||||||
|
} else if (getFeatures() & GF_FLOPPY) {
|
||||||
|
_dat->open("rtz.dat");
|
||||||
|
_res->open("rtz.prj");
|
||||||
|
} else {
|
||||||
|
error("Unknown game features");
|
||||||
}
|
}
|
||||||
|
|
||||||
_eventMouseX = _eventMouseY = 0;
|
_eventMouseX = _eventMouseY = 0;
|
||||||
|
|
|
@ -48,7 +48,10 @@
|
||||||
namespace Made {
|
namespace Made {
|
||||||
|
|
||||||
enum MadeGameFeatures {
|
enum MadeGameFeatures {
|
||||||
GF_DEMO = 1 << 0
|
GF_DEMO = 1 << 0,
|
||||||
|
GF_CD = 1 << 1,
|
||||||
|
GF_CD_COMPRESSED = 1 << 2,
|
||||||
|
GF_FLOPPY = 1 << 3
|
||||||
};
|
};
|
||||||
|
|
||||||
struct MadeGameDescription;
|
struct MadeGameDescription;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue