2025-05-17 22:56:57 -04:00
|
|
|
#include "zonefile_cod4_ps3.h"
|
|
|
|
|
|
|
|
|
|
#include <QFile>
|
|
|
|
|
#include <QDataStream>
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
|
|
ZoneFile_COD4_PS3::ZoneFile_COD4_PS3()
|
|
|
|
|
: ZoneFile() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ZoneFile_COD4_PS3::~ZoneFile_COD4_PS3() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool ZoneFile_COD4_PS3::Load(const QByteArray aFileData) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-10 00:05:44 -04:00
|
|
|
Utils::AssetType ZoneFile_COD4_PS3::AssetStrToEnum(const QString aAssetType) {
|
2025-05-17 22:56:57 -04:00
|
|
|
const QString cleanedType = aAssetType.toUpper();
|
2025-06-04 22:25:32 -04:00
|
|
|
if (cleanedType == "00000003") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_XMODEL;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "00000002") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_Animation;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "00000007") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_MATERIAL;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "00000009") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_TECHNIQUE_SET;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "0000000C") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_COL_MAP_SP;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "0000000E") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_D3DBSP;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "0000000F") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_GAME_MAP_SP;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "00000012") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_GFX_MAP;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "00000019") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_WEAPON;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "0000001B") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_FX;
|
2025-06-04 22:25:32 -04:00
|
|
|
} else if (cleanedType == "00000018") {
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_SOUND;
|
2025-05-17 22:56:57 -04:00
|
|
|
}
|
2025-07-10 00:05:44 -04:00
|
|
|
return Utils::ASSET_NONE;
|
2025-05-17 22:56:57 -04:00
|
|
|
}
|