Refactor: Use XDataStream instead of QDataStream for COD7/COD9 parsing.
This commit is contained in:
parent
15ff5e65b1
commit
c799f53687
@ -71,12 +71,12 @@ bool FastFile_COD7_360::Load(const QString aFilePath) {
|
|||||||
bool FastFile_COD7_360::Load(const QByteArray aData) {
|
bool FastFile_COD7_360::Load(const QByteArray aData) {
|
||||||
QByteArray decompressedData;
|
QByteArray decompressedData;
|
||||||
|
|
||||||
// Create a QDataStream on the input data.
|
// Create a XDataStream on the input data.
|
||||||
QDataStream fastFileStream(aData);
|
XDataStream fastFileStream(aData);
|
||||||
fastFileStream.skipRawData(12);
|
fastFileStream.skipRawData(12);
|
||||||
|
|
||||||
// For COD7/COD9, use BigEndian.
|
// For COD7/COD9, use BigEndian.
|
||||||
fastFileStream.setByteOrder(QDataStream::BigEndian);
|
fastFileStream.setByteOrder(XDataStream::BigEndian);
|
||||||
|
|
||||||
// Select key based on game.
|
// Select key based on game.
|
||||||
QByteArray key = QByteArray::fromHex("1ac1d12d527c59b40eca619120ff8217ccff09cd16896f81b829c7f52793405d");
|
QByteArray key = QByteArray::fromHex("1ac1d12d527c59b40eca619120ff8217ccff09cd16896f81b829c7f52793405d");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user