Fix: Use XDataStream instead of QDataStream
Change the type of the data stream from `QDataStream` to `XDataStream` for consistency and to align with the rest of the codebase.
This commit is contained in:
parent
8d31623138
commit
4fbf77e661
@ -72,9 +72,9 @@ bool FastFile_COD8_PS3::Load(const QString aFilePath) {
|
|||||||
bool FastFile_COD8_PS3::Load(const QByteArray aData) {
|
bool FastFile_COD8_PS3::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.setByteOrder(QDataStream::LittleEndian);
|
fastFileStream.setByteOrder(XDataStream::LittleEndian);
|
||||||
|
|
||||||
// Parse header values.
|
// Parse header values.
|
||||||
SetCompany(pParseFFCompany(&fastFileStream));
|
SetCompany(pParseFFCompany(&fastFileStream));
|
||||||
@ -90,9 +90,9 @@ bool FastFile_COD8_PS3::Load(const QByteArray aData) {
|
|||||||
zoneFile->SetStem(GetBaseStem() + ".zone");
|
zoneFile->SetStem(GetBaseStem() + ".zone");
|
||||||
|
|
||||||
// For COD7/COD9, use BigEndian.
|
// For COD7/COD9, use BigEndian.
|
||||||
fastFileStream.setByteOrder(QDataStream::BigEndian);
|
fastFileStream.setByteOrder(XDataStream::BigEndian);
|
||||||
if (GetPlatform() == "PC") {
|
if (GetPlatform() == "PC") {
|
||||||
fastFileStream.setByteOrder(QDataStream::LittleEndian);
|
fastFileStream.setByteOrder(XDataStream::LittleEndian);
|
||||||
|
|
||||||
// Select key based on game.
|
// Select key based on game.
|
||||||
QByteArray key;
|
QByteArray key;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user