[Scummvm-cvs-logs] SF.net SVN: scummvm: [25686] scummvm/trunk/engines/parallaction/archive.cpp

chrilith at users.sourceforge.net chrilith at users.sourceforge.net
Sun Feb 18 15:00:56 CET 2007


Revision: 25686
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25686&view=rev
Author:   chrilith
Date:     2007-02-18 06:00:55 -0800 (Sun, 18 Feb 2007)

Log Message:
-----------
Bad hack to make thsi engine run on PalmOS

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/archive.cpp

Modified: scummvm/trunk/engines/parallaction/archive.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/archive.cpp	2007-02-18 12:26:56 UTC (rev 25685)
+++ scummvm/trunk/engines/parallaction/archive.cpp	2007-02-18 14:00:55 UTC (rev 25686)
@@ -31,7 +31,14 @@
 
 #define DIRECTORY_OFFSET_IN_FILE	0x4000
 
-static Common::File 	_archive;
+#ifdef PALMOS_ARM
+	static Common::File *_archiveP = NULL;
+	#define _archive (*_archiveP)
+#else
+	static Common::File _archive;
+#endif
+
+
 static char 			_archiveDir[MAX_ARCHIVE_ENTRIES][32];
 static uint32			_archiveLenghts[MAX_ARCHIVE_ENTRIES];
 static uint32			_archiveOffsets[MAX_ARCHIVE_ENTRIES];
@@ -42,6 +49,11 @@
 void openArchive(const char *file) {
 	debugC(1, kDebugDisk, "open archive '%s'", file);
 
+#ifdef PALMOS_ARM
+	if (!_archiveP)
+		_archiveP = new Common::File();
+#endif
+
 	if (_archive.isOpen())
 		closeArchive();
 


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