XPlor/libs/zonefile/PS3/zonefile_cod6_ps3.cpp

65 lines
2.9 KiB
C++
Raw Normal View History

#include "zonefile_cod6_ps3.h"
#include <QFile>
#include <QDataStream>
#include <QDebug>
ZoneFile_COD6_PS3::ZoneFile_COD6_PS3()
: ZoneFile() {
}
ZoneFile_COD6_PS3::~ZoneFile_COD6_PS3() {
}
bool ZoneFile_COD6_PS3::Load(const QByteArray aFileData) {
return true;
}
2025-07-10 00:05:44 -04:00
Utils::AssetType ZoneFile_COD6_PS3::AssetStrToEnum(const QString aAssetType) {
const QString cleanedType = aAssetType.toUpper();
if (cleanedType == "17000000") { // localized string PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_RAWFILE;
} else if (cleanedType == "20000000") { // raw_file PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_SCRIPT_PARSE_TREE;
} else if (cleanedType == "1A000000") { // fx PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_FX;
} else if (cleanedType == "09000000") { // loaded_sound PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_SOUND;
} else if (cleanedType == "04000000") { // x_anim PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_Animation;
} else if (cleanedType == "0C000000") { // collision_map PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_COLLISION_MAP;
} else if (cleanedType == "21000000") { // string_table PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_STRINGTABLE;
} else if (cleanedType == "15000000") { // menu_file PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_MENU;
} else if (cleanedType == "07000000") { // tech set PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_TECHNIQUE_SET;
} else if (cleanedType == "18000000") { // weapon PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_WEAPON;
} else if (cleanedType == "11000000") { // gfx map PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_GFX_MAP;
} else if (cleanedType == "12000000") { // light_def PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_LIGHT_DEF;
} else if (cleanedType == "14000000") { // font PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_FONT;
} else if (cleanedType == "05000000") { // xmodel PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_XMODEL;
} else if (cleanedType == "0D000000") { // d3dbsp PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_D3DBSP;
} else if (cleanedType == "06000000") { // image PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_IMAGE;
} else if (cleanedType == "0E000000") { // game map sp PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_GAME_MAP_SP;
} else if (cleanedType == "0B000000") { // col map sp PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_COL_MAP_SP;
} else if (cleanedType == "01000000") { // physics preset PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_PHYSPRESET;
} else if (cleanedType == "03000000") { // destructible def PARTIALLY VERIFIED
2025-07-10 00:05:44 -04:00
return Utils::ASSET_DESTRUCTIBLE;
}
2025-07-10 00:05:44 -04:00
return Utils::ASSET_NONE;
}