[Scummvm-cvs-logs] SF.net SVN: scummvm: [28842] scummvm/trunk/engines/agi/loader_preagi.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Sep 3 03:49:24 CEST 2007


Revision: 28842
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28842&view=rev
Author:   thebluegr
Date:     2007-09-02 18:49:24 -0700 (Sun, 02 Sep 2007)

Log Message:
-----------
Cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/agi/loader_preagi.cpp

Modified: scummvm/trunk/engines/agi/loader_preagi.cpp
===================================================================
--- scummvm/trunk/engines/agi/loader_preagi.cpp	2007-09-03 01:36:55 UTC (rev 28841)
+++ scummvm/trunk/engines/agi/loader_preagi.cpp	2007-09-03 01:49:24 UTC (rev 28842)
@@ -104,9 +104,6 @@
 
 int AgiLoader_preagi::unloadResource(int t, int n) {
 	switch (t) {
-	case rLOGIC:
-		//_vm->unloadLogic(n);
-		break;
 	case rPICTURE:
 		_vm->_picture->unloadPicture(n);
 		break;
@@ -140,24 +137,20 @@
 int AgiLoader_preagi::loadResource(int t, int n) {
 	int ec = errOK;
 	uint8 *data = NULL;
+	char szFile[255] = {0};
 
 	if (n > MAX_DIRS)
 		return errBadResource;
 
 	switch (t) {
-	case rLOGIC:
-		// The logic in preagi games is hardcoded
-		break;
 	case rPICTURE:
 		/* if picture is currently NOT loaded *OR* cacheing is off,
 		 * unload the resource (caching==off) and reload it
 		 */
-		if (true) { //(~_vm->_game.dirPic[n].flags & RES_LOADED) {
+		if (~_vm->_game.dirPic[n].flags & RES_LOADED) {
 			unloadResource(rPICTURE, n);
-			//data = loadVolRes(&_vm->_game.dirPic[n]);
 
 			data = new uint8[4096];
-			char szFile[255] = {0};
 
 			sprintf(szFile, IDS_MSA_PATH_PIC, n);
 			Common::File infile;


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