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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Jan 25 15:38:12 CET 2007


Revision: 25190
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25190&view=rev
Author:   lordhoto
Date:     2007-01-25 06:38:11 -0800 (Thu, 25 Jan 2007)

Log Message:
-----------
Support for loading the correct EMC pak file in the FM-Towns version.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/resource.cpp

Modified: scummvm/trunk/engines/kyra/resource.cpp
===================================================================
--- scummvm/trunk/engines/kyra/resource.cpp	2007-01-25 14:18:12 UTC (rev 25189)
+++ scummvm/trunk/engines/kyra/resource.cpp	2007-01-25 14:38:11 UTC (rev 25190)
@@ -96,6 +96,20 @@
 				}
 			}
 		}
+
+		if (_engine->gameFlags().platform == Common::kPlatformFMTowns) {
+			Common::List<ResourceFile*>::iterator start = _pakfiles.begin();
+			uint unloadHash = (_engine->gameFlags().lang == Common::EN_ANY) ? Common::hashit_lower("JMC.PAK") : Common::hashit_lower("EMC.PAK");
+
+			for (;start != _pakfiles.end(); ++start) {
+				if ((*start)->filename() == unloadHash) {
+					delete *start;
+					*start = 0;
+					_pakfiles.erase(start);
+					break;
+				}
+			}
+		}
 	}
 }
 


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