[Scummvm-cvs-logs] CVS: scummvm/sky sky.cpp,1.13,1.14

Joost Peters joostp at users.sourceforge.net
Sun Apr 20 15:03:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv12368/sky

Modified Files:
	sky.cpp 
Log Message:
added detection for v0.0331

Index: sky.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/sky.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- sky.cpp	8 Apr 2003 12:19:14 -0000	1.13
+++ sky.cpp	20 Apr 2003 22:01:57 -0000	1.14
@@ -101,7 +101,8 @@
 
 	_skyDisk = new SkyDisk(_gameDataPath);
 	_gameVersion = _skyDisk->determineGameVersion();
-
+	_skyText = getSkyText();
+	
 	initialiseScreen();
 	initVirgin();
 	//initMouse();
@@ -109,7 +110,6 @@
 	//initScript();
 	initialiseGrids();
 	//initialiseRouter();
-	_skyText = getSkyText();
 }
 
 void SkyState::initItemList() {
@@ -196,11 +196,11 @@
 		//floppy demo
 		return new SkyText_v00267(_skyDisk, _gameVersion);
 	case 288:
-		//floppy - old version
+		//floppy version
 		return new SkyText_v00288(_skyDisk, _gameVersion);
-	//case 331:
-		//floppy - new version
-		//return new SkyText_v00331(_skyDisk, _gameVersion);
+	case 331:
+		//floppy version
+		return new SkyText_v00331(_skyDisk, _gameVersion);
 	case 365:
 		//cd demo, uses a slightly modified version of v00372
 	case 368:
@@ -209,7 +209,7 @@
 		//cd version
 		return new SkyText_v00372(_skyDisk, _gameVersion);
 	default:
-		error("Unknown game version!");
+		error("Unknown game version");
 	}
 }
 
@@ -228,7 +228,7 @@
 	case 372:
 		return false;
 	default:
-		error("Unknown game version!");
+		error("Unknown game version");
 	}
 }
 
@@ -247,7 +247,7 @@
 	case 372:
 		return true;
 	default:
-		error("Unknown game version!");
+		error("Unknown game version");
 	}
 }
 





More information about the Scummvm-git-logs mailing list