[Scummvm-cvs-logs] CVS: tools kyra_unpak.cpp,1.1,1.2
Gregory Montoir
cyx at users.sourceforge.net
Sun Nov 7 08:26:23 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: tools kyra_unpak.cpp,NONE,1.1 kyra_unpak.h,NONE,1.1 Makefile,1.39,1.40 Makefile.mingw,1.20,1.21 README,1.25,1.26
- Next message: [Scummvm-cvs-logs] CVS: scummvm/kyra resource.cpp,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27254
Modified Files:
kyra_unpak.cpp
Log Message:
endianness
Index: kyra_unpak.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/kyra_unpak.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- kyra_unpak.cpp 7 Nov 2004 15:57:46 -0000 1.1
+++ kyra_unpak.cpp 7 Nov 2004 16:21:37 -0000 1.2
@@ -90,7 +90,7 @@
void PAKFile::drawFilelist(void) {
const char* currentName = 0;
- uint32 startoffset = *(uint32*)_buffer;
+ uint32 startoffset = TO_LE_32(*(uint32 *)_buffer);
uint32 endoffset = 0;
uint8* position = _buffer + 4;
@@ -103,7 +103,7 @@
position += strlgt + 1;
// scip offset
- endoffset = *(uint32*)position;
+ endoffset = TO_LE_32(*(uint32 *)position);
if (endoffset > _filesize) {
endoffset = _filesize;
} else if (endoffset == 0) {
@@ -124,7 +124,7 @@
void PAKFile::outputFile(const char* file) {
const char* currentName = 0;
- uint32 startoffset = *(uint32*)_buffer;
+ uint32 startoffset = TO_LE_32(*(uint32 *)_buffer);
uint32 endoffset = 0;
uint8* position = _buffer + 4;
@@ -137,7 +137,7 @@
position += strlgt + 1;
// scip offset
- endoffset = *(uint32*)position;
+ endoffset = TO_LE_32(*(uint32 *)position);
if (endoffset > _filesize) {
endoffset = _filesize;
} else if (endoffset == 0) {
@@ -165,7 +165,7 @@
void PAKFile::outputAllFiles(void) {
const char* currentName = 0;
- uint32 startoffset = *(uint32*)_buffer;
+ uint32 startoffset = TO_LE_32(*(uint32 *)_buffer);
uint32 endoffset = 0;
uint8* position = _buffer + 4;
@@ -178,7 +178,7 @@
position += strlgt + 1;
// scip offset
- endoffset = *(uint32*)position;
+ endoffset = TO_LE_32(*(uint32 *)position);
if (endoffset > _filesize) {
endoffset = _filesize;
} else if (endoffset == 0) {
- Previous message: [Scummvm-cvs-logs] CVS: tools kyra_unpak.cpp,NONE,1.1 kyra_unpak.h,NONE,1.1 Makefile,1.39,1.40 Makefile.mingw,1.20,1.21 README,1.25,1.26
- Next message: [Scummvm-cvs-logs] CVS: scummvm/kyra resource.cpp,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list