[Scummvm-cvs-logs] SF.net SVN: scummvm: [22492] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue May 16 09:31:44 CEST 2006


Revision: 22492
Author:   lordhoto
Date:     2006-05-16 09:31:23 -0700 (Tue, 16 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22492&view=rev

Log Message:
-----------
Removes ENABLE_KYRA2 and ENABLE_KYRA3.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra.h
    scummvm/trunk/engines/kyra/kyra3.cpp
    scummvm/trunk/engines/kyra/plugin.cpp
    scummvm/trunk/engines/kyra/wsamovie.cpp
    scummvm/trunk/engines/kyra/wsamovie.h
Modified: scummvm/trunk/engines/kyra/kyra.h
===================================================================
--- scummvm/trunk/engines/kyra/kyra.h	2006-05-16 16:15:33 UTC (rev 22491)
+++ scummvm/trunk/engines/kyra/kyra.h	2006-05-16 16:31:23 UTC (rev 22492)
@@ -1009,8 +1009,7 @@
 	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 @@
 	
 	int go();
 };
-#endif
 
 } // End of namespace Kyra
 

Modified: scummvm/trunk/engines/kyra/kyra3.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra3.cpp	2006-05-16 16:15:33 UTC (rev 22491)
+++ scummvm/trunk/engines/kyra/kyra3.cpp	2006-05-16 16:31:23 UTC (rev 22492)
@@ -20,7 +20,6 @@
  *
  */
 
-#ifdef ENABLE_KYRA3
 #include "kyra/kyra.h"
 #include "kyra/screen.h"
 #include "kyra/wsamovie.h"
@@ -77,4 +76,3 @@
 	return 0;
 }
 }
-#endif // ENABLE_KYRA3

Modified: scummvm/trunk/engines/kyra/plugin.cpp
===================================================================
--- scummvm/trunk/engines/kyra/plugin.cpp	2006-05-16 16:15:33 UTC (rev 22491)
+++ scummvm/trunk/engines/kyra/plugin.cpp	2006-05-16 16:31:23 UTC (rev 22492)
@@ -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 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 @@
 		*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.");
 	

Modified: scummvm/trunk/engines/kyra/wsamovie.cpp
===================================================================
--- scummvm/trunk/engines/kyra/wsamovie.cpp	2006-05-16 16:15:33 UTC (rev 22491)
+++ scummvm/trunk/engines/kyra/wsamovie.cpp	2006-05-16 16:31:23 UTC (rev 22492)
@@ -207,7 +207,6 @@
 
 #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 @@
 	delete [] p;
 	_opened = true;
 }
-#endif
 
 } // end of namespace Kyra

Modified: scummvm/trunk/engines/kyra/wsamovie.h
===================================================================
--- scummvm/trunk/engines/kyra/wsamovie.h	2006-05-16 16:15:33 UTC (rev 22491)
+++ scummvm/trunk/engines/kyra/wsamovie.h	2006-05-16 16:31:23 UTC (rev 22492)
@@ -85,9 +85,9 @@
 	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 @@
 	int16 _xAdd;
 	int16 _yAdd;
 };
-#endif
 
 } // end of namespace Kyra
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list