[Scummvm-cvs-logs] SF.net SVN: scummvm:[35383] scummvm/trunk/graphics
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Mon Dec 15 14:10:08 CET 2008
Revision: 35383
http://scummvm.svn.sourceforge.net/scummvm/?rev=35383&view=rev
Author: Kirben
Date: 2008-12-15 13:10:08 +0000 (Mon, 15 Dec 2008)
Log Message:
-----------
Mirror last Smacker changes.
Modified Paths:
--------------
scummvm/trunk/graphics/dxa_player.cpp
scummvm/trunk/graphics/dxa_player.h
Modified: scummvm/trunk/graphics/dxa_player.cpp
===================================================================
--- scummvm/trunk/graphics/dxa_player.cpp 2008-12-15 12:55:57 UTC (rev 35382)
+++ scummvm/trunk/graphics/dxa_player.cpp 2008-12-15 13:10:08 UTC (rev 35383)
@@ -24,7 +24,7 @@
*/
#include "common/endian.h"
-#include "common/file.h"
+#include "common/archive.h"
#include "graphics/dxa_player.h"
#include "common/util.h"
@@ -89,18 +89,14 @@
return _framesCount;
}
-bool DXAPlayer::loadFile(const char *filename) {
+bool DXAPlayer::loadFile(const char *fileName) {
uint32 tag;
int32 frameRate;
- Common::File *file = new Common::File();
- if (!file->open(filename)) {
- delete file;
- return 0;
- }
+ _fileStream = SearchMan.openFile(fileName);
+ if (!_fileStream)
+ return false;
- _fileStream = file;
-
tag = _fileStream->readUint32BE();
assert(tag == MKID_BE('DEXA'));
Modified: scummvm/trunk/graphics/dxa_player.h
===================================================================
--- scummvm/trunk/graphics/dxa_player.h 2008-12-15 12:55:57 UTC (rev 35382)
+++ scummvm/trunk/graphics/dxa_player.h 2008-12-15 13:10:08 UTC (rev 35383)
@@ -61,8 +61,6 @@
DXAPlayer();
virtual ~DXAPlayer();
- Common::SeekableReadStream *_fileStream;
-
/**
* Returns the width of the video
* @return the width of the video
@@ -91,7 +89,7 @@
* Load a DXA encoded video file
* @param filename the filename to load
*/
- bool loadFile(const char *filename);
+ bool loadFile(const char *fileName);
/**
* Close a DXA encoded video file
@@ -123,6 +121,8 @@
void decodeZlib(byte *data, int size, int totalSize);
void decode12(int size);
void decode13(int size);
+
+ Common::SeekableReadStream *_fileStream;
};
} // End of namespace Graphics
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