Removes ENABLE_KYRA2 and ENABLE_KYRA3.

svn-id: r22492
This commit is contained in:
Johannes Schickel 2006-05-16 16:31:23 +00:00
parent 47a39a8401
commit 3d10ecf1ae
5 changed files with 2 additions and 21 deletions

View File

@ -1009,8 +1009,7 @@ public:
int go();
};
#ifdef ENABLE_KYRA3
// maybe overload KyraEngine_v2 later
// maybe subclass KyraEngine_v2 later
class KyraEngine_v3 : public KyraEngine {
public:
KyraEngine_v3(OSystem *system);
@ -1022,7 +1021,6 @@ public:
int go();
};
#endif
} // End of namespace Kyra

View File

@ -20,7 +20,6 @@
*
*/
#ifdef ENABLE_KYRA3
#include "kyra/kyra.h"
#include "kyra/screen.h"
#include "kyra/wsamovie.h"
@ -77,4 +76,3 @@ int KyraEngine_v3::go() {
return 0;
}
}
#endif // ENABLE_KYRA3

View File

@ -32,8 +32,6 @@
using namespace Kyra;
#undef ENABLE_KYRA2
enum {
// We only compute MD5 of the first megabyte of our data files.
kMD5FileSizeLimit = 1024 * 1024
@ -87,30 +85,22 @@ const GameSettings kyra1_games[] = {
};
const GameSettings kyra2_games[] = {
#ifdef ENABLE_KYRA2
{ "kyra2", "The Hand of Fate", GI_KYRA2, GF_ENGLISH, // CD version? Floppy version?
"28cbad1c5bf06b2d3825ae57d760d032", "FATE.PAK" },
#endif
{ 0, 0, 0, 0, 0, 0 }
};
const GameSettings kyra3_games[] = {
#ifdef ENABLE_KYRA3
{ "kyra3", "The Legend of Kyrandia: Book Three",
GI_KYRA3, GF_LNGUNK, "3833ff312757b8e6147f464cca0a6587", "ONETIME.PAK" },
#endif
{ 0, 0, 0, 0, 0, 0 }
};
// Keep list of different supported games
const PlainGameDescriptor kyra_list[] = {
{ "kyra1", "The Legend of Kyrandia" },
#ifdef ENABLE_KYRA2
{ "kyra2", "The Hand of Fate" },
#endif
#ifdef ENABLE_KYRA3
{ "kyra3", "The Legend of Kyrandia: Book Three" },
#endif
{ 0, 0 }
};
@ -276,10 +266,8 @@ PluginError Engine_KYRA_create(OSystem *syst, Engine **engine) {
*engine = new KyraEngine_v1(syst);
} else if (!scumm_stricmp("kyra2", gameid)) {
*engine = new KyraEngine_v2(syst);
#ifdef ENABLE_KYRA3
} else if (!scumm_stricmp("kyra3", gameid)) {
*engine = new KyraEngine_v3(syst);
#endif
} else
error("Kyra engine created with invalid gameid.");

View File

@ -207,7 +207,6 @@ void WSAMovieV1::processFrame(int frameNum, uint8 *dst) {
#pragma mark -
#ifdef ENABLE_KYRA3
WSAMovieV3::WSAMovieV3(KyraEngine_v3 *vm) : WSAMovieV1(vm), _vm3(vm), _xAdd(0), _yAdd(0) {}
void WSAMovieV3::open(const char *filename, int unk1, uint8 *palBuf) {
@ -282,6 +281,5 @@ void WSAMovieV3::open(const char *filename, int unk1, uint8 *palBuf) {
delete [] p;
_opened = true;
}
#endif
} // end of namespace Kyra

View File

@ -85,9 +85,9 @@ protected:
uint8 *_frameData;
};
#ifdef ENABLE_KYRA3
class KyraEngine_v3;
// it could be possible that Kyrandia2 uses exactly the same format
class WSAMovieV3 : public WSAMovieV1 {
public:
WSAMovieV3(KyraEngine_v3 *vm);
@ -102,7 +102,6 @@ protected:
int16 _xAdd;
int16 _yAdd;
};
#endif
} // end of namespace Kyra