Compare commits
No commits in common. "729a6bac7ccde3538c13b9c7ab2f87b4db21c2e9" and "cfa0638b94cdb327da6975bbf3769a3ab764e0f8" have entirely different histories.
729a6bac7c
...
cfa0638b94
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"workbench.colorTheme": "Default Dark Modern",
|
|
||||||
"workbench.startupEditor": "none"
|
|
||||||
}
|
|
||||||
63
app/app.pro
63
app/app.pro
@ -6,9 +6,66 @@ SUBDIRS += app
|
|||||||
|
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
|
|
||||||
SOURCES += $$files($$PWD/*.cpp)
|
SOURCES += \
|
||||||
HEADERS += $$files($$PWD/*.h)
|
aboutdialog.cpp \
|
||||||
FORMS += $$files($$PWD/*.ui)
|
ddsviewer.cpp \
|
||||||
|
fastfileviewer.cpp \
|
||||||
|
imagewidget.cpp \
|
||||||
|
iwiviewer.cpp \
|
||||||
|
localstringviewer.cpp \
|
||||||
|
main.cpp \
|
||||||
|
mainwindow.cpp \
|
||||||
|
materialviewer.cpp \
|
||||||
|
preferenceeditor.cpp \
|
||||||
|
reportissuedialog.cpp \
|
||||||
|
soundviewer.cpp \
|
||||||
|
stringtableviewer.cpp \
|
||||||
|
rumblegraphviewer.cpp \
|
||||||
|
rumblefileviewer.cpp \
|
||||||
|
techsetviewer.cpp \
|
||||||
|
xtreewidget.cpp \
|
||||||
|
xtreewidgetitem.cpp \
|
||||||
|
zonefileviewer.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
aboutdialog.h \
|
||||||
|
d3dbsp_structs.h \
|
||||||
|
ddsviewer.h \
|
||||||
|
fastfileviewer.h \
|
||||||
|
imagewidget.h \
|
||||||
|
iwiviewer.h \
|
||||||
|
localstringviewer.h \
|
||||||
|
mainwindow.h \
|
||||||
|
materialviewer.h \
|
||||||
|
preferenceeditor.h \
|
||||||
|
reportissuedialog.h \
|
||||||
|
soundviewer.h \
|
||||||
|
stringtableviewer.h \
|
||||||
|
rumblegraphviewer.h \
|
||||||
|
rumblefileviewer.h \
|
||||||
|
techsetviewer.h \
|
||||||
|
xtreewidget.h \
|
||||||
|
xtreewidgetitem.h \
|
||||||
|
zonefileviewer.h
|
||||||
|
|
||||||
|
FORMS += \
|
||||||
|
aboutdialog.ui \
|
||||||
|
ddsviewer.ui \
|
||||||
|
fastfileviewer.ui \
|
||||||
|
imagewidget.ui \
|
||||||
|
iwiviewer.ui \
|
||||||
|
localstringviewer.ui \
|
||||||
|
mainwindow.ui \
|
||||||
|
materialviewer.ui \
|
||||||
|
modelviewer.ui \
|
||||||
|
preferenceeditor.ui \
|
||||||
|
soundviewer.ui \
|
||||||
|
stringtableviewer.ui \
|
||||||
|
rumblegraphviewer.ui \
|
||||||
|
rumblefileviewer.ui \
|
||||||
|
techsetviewer.ui \
|
||||||
|
zonefileviewer.ui \
|
||||||
|
reportissuedialog.ui
|
||||||
|
|
||||||
RESOURCES += ../data/data.qrc
|
RESOURCES += ../data/data.qrc
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef RUMBLEFILEVIEWER_H
|
#ifndef RUMBLEFILEVIEWER_H
|
||||||
#define RUMBLEFILEVIEWER_H
|
#define RUMBLEFILEVIEWER_H
|
||||||
|
|
||||||
#include "xrawfile.h"
|
#include "rawfile.h"
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef STRINGTABLEVIEWER_H
|
#ifndef STRINGTABLEVIEWER_H
|
||||||
#define STRINGTABLEVIEWER_H
|
#define STRINGTABLEVIEWER_H
|
||||||
|
|
||||||
#include "xstringtable.h"
|
#include "stringtable.h"
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
|||||||
@ -7,9 +7,9 @@
|
|||||||
#include "fastfile.h"
|
#include "fastfile.h"
|
||||||
#include "xtreewidgetitem.h"
|
#include "xtreewidgetitem.h"
|
||||||
#include "zonefile.h"
|
#include "zonefile.h"
|
||||||
#include "xrawfile.h"
|
#include "rawfile.h"
|
||||||
#include "gfximage.h"
|
#include "gfximage.h"
|
||||||
#include "xstringtable.h"
|
#include "stringtable.h"
|
||||||
#include "menudef.h"
|
#include "menudef.h"
|
||||||
|
|
||||||
#include <QTreeWidget>
|
#include <QTreeWidget>
|
||||||
|
|||||||
1
libs/assets/asset.cpp
Normal file
1
libs/assets/asset.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "asset.h"
|
||||||
112
libs/assets/asset.h
Normal file
112
libs/assets/asset.h
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
#ifndef ASSET_H
|
||||||
|
#define ASSET_H
|
||||||
|
|
||||||
|
#include "animparts.h"
|
||||||
|
#include "model.h"
|
||||||
|
#include "material.h"
|
||||||
|
#include "materialpixelshader.h"
|
||||||
|
#include "materialtechset.h"
|
||||||
|
#include "gfximage.h"
|
||||||
|
#include "soundalias.h"
|
||||||
|
#include "soundcurve.h"
|
||||||
|
#include "loadedsound.h"
|
||||||
|
#include "clipmap.h"
|
||||||
|
#include "comworld.h"
|
||||||
|
#include "gameworld.h"
|
||||||
|
#include "mapent.h"
|
||||||
|
#include "gfxworld.h"
|
||||||
|
#include "gfxlightdef.h"
|
||||||
|
#include "gfximage.h"
|
||||||
|
#include "font.h"
|
||||||
|
#include "menulist.h"
|
||||||
|
#include "menudef.h"
|
||||||
|
#include "localizeentry.h"
|
||||||
|
#include "weapondef.h"
|
||||||
|
#include "sounddriver.h"
|
||||||
|
#include "effectdef.h"
|
||||||
|
#include "effecttable.h"
|
||||||
|
#include "rawfile.h"
|
||||||
|
#include "stringtable.h"
|
||||||
|
|
||||||
|
enum XAssetType : qint32
|
||||||
|
{
|
||||||
|
ASSET_TYPE_XMODELPIECES = 0x0,
|
||||||
|
ASSET_TYPE_PHYSPRESET = 0x1,
|
||||||
|
ASSET_TYPE_XANIMPARTS = 0x2,
|
||||||
|
ASSET_TYPE_XMODEL = 0x3,
|
||||||
|
ASSET_TYPE_MATERIAL = 0x4,
|
||||||
|
ASSET_TYPE_PIXELSHADER = 0x5,
|
||||||
|
ASSET_TYPE_TECHNIQUE_SET = 0x6,
|
||||||
|
ASSET_TYPE_IMAGE = 0x7,
|
||||||
|
ASSET_TYPE_SOUND = 0x8,
|
||||||
|
ASSET_TYPE_SOUND_CURVE = 0x9,
|
||||||
|
ASSET_TYPE_LOADED_SOUND = 0xA,
|
||||||
|
ASSET_TYPE_CLIPMAP = 0xB,
|
||||||
|
ASSET_TYPE_CLIPMAP_PVS = 0xC,
|
||||||
|
ASSET_TYPE_COMWORLD = 0xD,
|
||||||
|
ASSET_TYPE_GAMEWORLD_SP = 0xE,
|
||||||
|
ASSET_TYPE_GAMEWORLD_MP = 0xF,
|
||||||
|
ASSET_TYPE_MAP_ENTS = 0x10,
|
||||||
|
ASSET_TYPE_GFXWORLD = 0x11,
|
||||||
|
ASSET_TYPE_LIGHT_DEF = 0x12,
|
||||||
|
ASSET_TYPE_UI_MAP = 0x13,
|
||||||
|
ASSET_TYPE_FONT = 0x14,
|
||||||
|
ASSET_TYPE_MENULIST = 0x15,
|
||||||
|
ASSET_TYPE_MENU = 0x16,
|
||||||
|
ASSET_TYPE_LOCALIZE_ENTRY = 0x17,
|
||||||
|
ASSET_TYPE_WEAPON = 0x18,
|
||||||
|
ASSET_TYPE_SNDDRIVER_GLOBALS = 0x19,
|
||||||
|
ASSET_TYPE_FX = 0x1A,
|
||||||
|
ASSET_TYPE_IMPACT_FX = 0x1B,
|
||||||
|
ASSET_TYPE_AITYPE = 0x1C,
|
||||||
|
ASSET_TYPE_MPTYPE = 0x1D,
|
||||||
|
ASSET_TYPE_CHARACTER = 0x1E,
|
||||||
|
ASSET_TYPE_XMODELALIAS = 0x1F,
|
||||||
|
ASSET_TYPE_RAWFILE = 0x20,
|
||||||
|
ASSET_TYPE_STRINGTABLE = 0x21,
|
||||||
|
ASSET_TYPE_COUNT = 0x22,
|
||||||
|
ASSET_TYPE_STRING = 0x22,
|
||||||
|
ASSET_TYPE_ASSETLIST = 0x23,
|
||||||
|
};
|
||||||
|
|
||||||
|
union XAssetHeader
|
||||||
|
{
|
||||||
|
XModelPieces *xmodelPieces;
|
||||||
|
PhysPreset *physPreset;
|
||||||
|
XAnimParts *parts;
|
||||||
|
Model *model;
|
||||||
|
Material *material;
|
||||||
|
MaterialPixelShader *pixelShader;
|
||||||
|
MaterialVertexShader *vertexShader;
|
||||||
|
MaterialTechSet *techniqueSet;
|
||||||
|
GfxImage *image;
|
||||||
|
SoundAliasList *sound;
|
||||||
|
SoundCurve *sndCurve;
|
||||||
|
LoadedSound *loadSnd;
|
||||||
|
ClipMap *clipMap;
|
||||||
|
ComWorld *comWorld;
|
||||||
|
GameWorldSp *gameWorldSp;
|
||||||
|
GameWorldMp *gameWorldMp;
|
||||||
|
MapEnts *mapEnts;
|
||||||
|
GfxWorld *gfxWorld;
|
||||||
|
GfxLightDef *lightDef;
|
||||||
|
GameFont *font;
|
||||||
|
MenuList *menuList;
|
||||||
|
MenuDef *menu;
|
||||||
|
LocalizeEntry *localize;
|
||||||
|
WeaponDef *weapon;
|
||||||
|
SoundDriver *sndDriverGlobals;
|
||||||
|
const EffectDef *fx;
|
||||||
|
ImpactTable *impactFx;
|
||||||
|
RawFile *rawfile;
|
||||||
|
StringTable *stringTable;
|
||||||
|
void *data;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct XAsset
|
||||||
|
{
|
||||||
|
XAssetType type;
|
||||||
|
XAssetHeader header;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // ASSET_H
|
||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef ASSETLIST_H
|
#ifndef ASSETLIST_H
|
||||||
#define ASSETLIST_H
|
#define ASSETLIST_H
|
||||||
|
|
||||||
#include "xasset.h"
|
#include "asset.h"
|
||||||
#include "scriptstringlist.h"
|
#include "scriptstringlist.h"
|
||||||
|
|
||||||
struct XAssetList
|
struct XAssetList
|
||||||
@ -2,7 +2,7 @@
|
|||||||
#define ASSETMAP_H
|
#define ASSETMAP_H
|
||||||
|
|
||||||
#include "animparts.h"
|
#include "animparts.h"
|
||||||
#include "xmodel.h"
|
#include "model.h"
|
||||||
#include "material.h"
|
#include "material.h"
|
||||||
#include "materialpixelshader.h"
|
#include "materialpixelshader.h"
|
||||||
#include "materialtechset.h"
|
#include "materialtechset.h"
|
||||||
@ -11,7 +11,7 @@
|
|||||||
#include "soundcurve.h"
|
#include "soundcurve.h"
|
||||||
#include "loadedsound.h"
|
#include "loadedsound.h"
|
||||||
#include "clipmap.h"
|
#include "clipmap.h"
|
||||||
#include "xcomworld.h"
|
#include "comworld.h"
|
||||||
#include "gameworld.h"
|
#include "gameworld.h"
|
||||||
#include "mapent.h"
|
#include "mapent.h"
|
||||||
#include "gfxworld.h"
|
#include "gfxworld.h"
|
||||||
@ -20,13 +20,13 @@
|
|||||||
#include "font.h"
|
#include "font.h"
|
||||||
#include "menulist.h"
|
#include "menulist.h"
|
||||||
#include "menudef.h"
|
#include "menudef.h"
|
||||||
#include "xlocalizeentry.h"
|
#include "localizeentry.h"
|
||||||
#include "weapondef.h"
|
#include "weapondef.h"
|
||||||
#include "xsounddriverglobals.h"
|
#include "sounddriver.h"
|
||||||
#include "effectdef.h"
|
#include "effectdef.h"
|
||||||
#include "effecttable.h"
|
#include "effecttable.h"
|
||||||
#include "xrawfile.h"
|
#include "rawfile.h"
|
||||||
#include "xstringtable.h"
|
#include "stringtable.h"
|
||||||
|
|
||||||
struct AssetMap {
|
struct AssetMap {
|
||||||
QVector<Animation> animations;
|
QVector<Animation> animations;
|
||||||
@ -1065,14 +1065,14 @@ GfxVertexBuffer Assets::Load_GfxVertexBuffer(QDataStream *aStream)
|
|||||||
GfxVertexBuffer result;
|
GfxVertexBuffer result;
|
||||||
|
|
||||||
*aStream
|
*aStream
|
||||||
>> result.Format.request.Type
|
>> result.Format.__s0.Type
|
||||||
>> result.Format.request.BaseAddress
|
>> result.Format.__s0.BaseAddress
|
||||||
>> result.Format.request.Endian
|
>> result.Format.__s0.Endian
|
||||||
>> result.Format.request.Size
|
>> result.Format.__s0.Size
|
||||||
>> result.Format.request.AddressClamp
|
>> result.Format.__s0.AddressClamp
|
||||||
>> result.Format.request.
|
>> result.Format.__s0.
|
||||||
>> result.Format.request.RequestSize
|
>> result.Format.__s0.RequestSize
|
||||||
>> result.Format.request.ClampDisable
|
>> result.Format.__s0.ClampDisable
|
||||||
>> result.Format.dword[0]
|
>> result.Format.dword[0]
|
||||||
>> result.Format.dword[1]
|
>> result.Format.dword[1]
|
||||||
>> result.Common
|
>> result.Common
|
||||||
@ -1110,6 +1110,11 @@ QVector<XSurfaceCollisionNode> Assets::Load_XSurfaceCollisionNodeArray(QDataStre
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct XSurfaceCollisionLeaf
|
||||||
|
{
|
||||||
|
unsigned __int16 triangleBeginIndex;
|
||||||
|
};
|
||||||
|
|
||||||
// ?Load_XSurfaceCollisionLeafArray@@YAX_NH@Z at 0x822a4fb8
|
// ?Load_XSurfaceCollisionLeafArray@@YAX_NH@Z at 0x822a4fb8
|
||||||
QVector<XSurfaceCollisionLeaf> Assets::Load_XSurfaceCollisionLeafArray(QDataStream *aStream, int count)
|
QVector<XSurfaceCollisionLeaf> Assets::Load_XSurfaceCollisionLeafArray(QDataStream *aStream, int count)
|
||||||
{
|
{
|
||||||
@ -1253,12 +1258,12 @@ StreamFileNamePacked Assets::Load_StreamFileNamePacked(QDataStream *aStream)
|
|||||||
|
|
||||||
|
|
||||||
// ?Load_XaReverbSettingsArray@@YAX_NH@Z at 0x822a5048
|
// ?Load_XaReverbSettingsArray@@YAX_NH@Z at 0x822a5048
|
||||||
QVector<XAudioReverbSettings> Assets::Load_XaReverbSettingsArray(QDataStream *aStream, int count)
|
QVector<XaReverbSettings> Assets::Load_XaReverbSettingsArray(QDataStream *aStream, int count)
|
||||||
{
|
{
|
||||||
QVector<XAudioReverbSettings> result;
|
QVector<XaReverbSettings> result;
|
||||||
|
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
XAudioReverbSettings xaReverbSettings;
|
XaReverbSettings xaReverbSettings;
|
||||||
|
|
||||||
*aStream
|
*aStream
|
||||||
>> xaReverbSettings.presetOverridden
|
>> xaReverbSettings.presetOverridden
|
||||||
@ -2492,9 +2497,9 @@ RawFile Assets::Load_RawFile(QDataStream *aStream)
|
|||||||
|
|
||||||
|
|
||||||
// ?Load_LocalizeEntry@@YAX_N@Z at 0x822a5ef0
|
// ?Load_LocalizeEntry@@YAX_N@Z at 0x822a5ef0
|
||||||
XLocalizeEntry Assets::Load_LocalizeEntry(QDataStream *aStream)
|
LocalizeEntry Assets::Load_LocalizeEntry(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
XLocalizeEntry result;
|
LocalizeEntry result;
|
||||||
|
|
||||||
*aStream
|
*aStream
|
||||||
>> result.valuePtr
|
>> result.valuePtr
|
||||||
@ -2525,9 +2530,9 @@ void Assets::Load_operandInternalDataUnion(QDataStream *aStream)
|
|||||||
|
|
||||||
|
|
||||||
// ?Load_ComPrimaryLight@@YAX_N@Z at 0x822a6098
|
// ?Load_ComPrimaryLight@@YAX_N@Z at 0x822a6098
|
||||||
XComPrimaryLight Assets::Load_ComPrimaryLight(QDataStream *aStream)
|
ComPrimaryLight Assets::Load_ComPrimaryLight(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
XComPrimaryLight result;
|
ComPrimaryLight result;
|
||||||
|
|
||||||
*aStream
|
*aStream
|
||||||
>> result.type
|
>> result.type
|
||||||
@ -3235,9 +3240,9 @@ StreamFileNameRaw Assets::Load_StreamFileNameRaw(QDataStream *aStream)
|
|||||||
|
|
||||||
|
|
||||||
// ?Load_SndDriverGlobals@@YAX_N@Z at 0x822a6f48
|
// ?Load_SndDriverGlobals@@YAX_N@Z at 0x822a6f48
|
||||||
XSoundDriverGlobals Assets::Load_SndDriverGlobals(QDataStream *aStream)
|
SndDriverGlobals Assets::Load_SndDriverGlobals(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
XSoundDriverGlobals result;
|
SndDriverGlobals result;
|
||||||
|
|
||||||
*aStream
|
*aStream
|
||||||
>> result.reverbSettingsPtr
|
>> result.reverbSettingsPtr
|
||||||
@ -3245,7 +3250,7 @@ XSoundDriverGlobals Assets::Load_SndDriverGlobals(QDataStream *aStream)
|
|||||||
|
|
||||||
if (result.reverbSettingsPtr)
|
if (result.reverbSettingsPtr)
|
||||||
{
|
{
|
||||||
XAudioReverbSettings xaReverbSettings;
|
XaReverbSettings xaReverbSettings;
|
||||||
|
|
||||||
*aStream
|
*aStream
|
||||||
>> xaReverbSettings.presetOverridden
|
>> xaReverbSettings.presetOverridden
|
||||||
@ -3550,9 +3555,9 @@ RawFile Assets::Load_RawFilePtr(QDataStream *aStream)
|
|||||||
|
|
||||||
|
|
||||||
// ?Load_LocalizeEntryPtr@@YAX_N@Z at 0x822a77d0
|
// ?Load_LocalizeEntryPtr@@YAX_N@Z at 0x822a77d0
|
||||||
XLocalizeEntry Assets::Load_LocalizeEntryPtr(QDataStream *aStream)
|
LocalizeEntry Assets::Load_LocalizeEntryPtr(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
XLocalizeEntry result;
|
LocalizeEntry result;
|
||||||
qint32 localizeEntryPtr;
|
qint32 localizeEntryPtr;
|
||||||
|
|
||||||
*aStream >> localizeEntryPtr;
|
*aStream >> localizeEntryPtr;
|
||||||
@ -3630,12 +3635,12 @@ Operand Assets::Load_Operand(QDataStream *aStream)
|
|||||||
|
|
||||||
|
|
||||||
// ?Load_ComPrimaryLightArray@@YAX_NH@Z at 0x822a79d0
|
// ?Load_ComPrimaryLightArray@@YAX_NH@Z at 0x822a79d0
|
||||||
QVector<XComPrimaryLight> Assets::Load_ComPrimaryLightArray(QDataStream *aStream, int count)
|
QVector<ComPrimaryLight> Assets::Load_ComPrimaryLightArray(QDataStream *aStream, int count)
|
||||||
{
|
{
|
||||||
QVector<XComPrimaryLight> result;
|
QVector<ComPrimaryLight> result;
|
||||||
|
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
XComPrimaryLight comPrimaryLight;
|
ComPrimaryLight comPrimaryLight;
|
||||||
|
|
||||||
*aStream
|
*aStream
|
||||||
>> comPrimaryLight.type
|
>> comPrimaryLight.type
|
||||||
@ -4198,7 +4203,7 @@ void Assets::Load_StreamFileInfo(QDataStream *aStream)
|
|||||||
// ?Load_SndDriverGlobalsPtr@@YAX_N@Z at 0x822a8640
|
// ?Load_SndDriverGlobalsPtr@@YAX_N@Z at 0x822a8640
|
||||||
void Assets::Load_SndDriverGlobalsPtr(QDataStream *aStream)
|
void Assets::Load_SndDriverGlobalsPtr(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
XSoundDriverGlobals result;
|
SndDriverGlobals result;
|
||||||
qint32 sndDriverGlobalsPtr;
|
qint32 sndDriverGlobalsPtr;
|
||||||
|
|
||||||
*aStream >> sndDriverGlobalsPtr;
|
*aStream >> sndDriverGlobalsPtr;
|
||||||
@ -9345,7 +9350,7 @@ clipMap_t Assets::Load_clipMap_t(QDataStream *aStream)
|
|||||||
if (result.planesPtr == -1)
|
if (result.planesPtr == -1)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < result.planeCount; i++) {
|
for (int i = 0; i < result.planeCount; i++) {
|
||||||
result.planes << XAsset::Load_cplane_s(aStream);
|
result.planes << Asset::Load_cplane_s(aStream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef ASSETS_H
|
#ifndef ASSETS_H
|
||||||
#define ASSETS_H
|
#define ASSETS_H
|
||||||
|
|
||||||
#include "xmodel.h"
|
#include "model.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
@ -1119,7 +1119,7 @@ struct clipMap_t
|
|||||||
uint checksum;
|
uint checksum;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct XComPrimaryLight
|
struct ComPrimaryLight
|
||||||
{
|
{
|
||||||
quint8 type;
|
quint8 type;
|
||||||
quint8 canUseShadowMap;
|
quint8 canUseShadowMap;
|
||||||
@ -1145,7 +1145,7 @@ struct ComWorld
|
|||||||
int isInUse;
|
int isInUse;
|
||||||
uint primaryLightCount;
|
uint primaryLightCount;
|
||||||
qint32 primaryLightsPtr;
|
qint32 primaryLightsPtr;
|
||||||
QVector<XComPrimaryLight> primaryLights;
|
QVector<ComPrimaryLight> primaryLights;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum nodeType : qint32
|
enum nodeType : qint32
|
||||||
@ -2089,7 +2089,7 @@ struct MenuList
|
|||||||
QVector<menuDef_t> menus;
|
QVector<menuDef_t> menus;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct XLocalizeEntry
|
struct LocalizeEntry
|
||||||
{
|
{
|
||||||
qint32 valuePtr;
|
qint32 valuePtr;
|
||||||
QString value;
|
QString value;
|
||||||
@ -2817,7 +2817,7 @@ struct WeaponDef
|
|||||||
float adsDofEnd;
|
float adsDofEnd;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct XReverbSettings
|
struct XAUDIOREVERBSETTINGS
|
||||||
{
|
{
|
||||||
uint ReflectionsDelay;
|
uint ReflectionsDelay;
|
||||||
quint8 ReverbDelay;
|
quint8 ReverbDelay;
|
||||||
@ -2842,16 +2842,16 @@ struct XReverbSettings
|
|||||||
float RoomSize;
|
float RoomSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct XAudioReverbSettings
|
struct XaReverbSettings
|
||||||
{
|
{
|
||||||
int presetOverridden;
|
int presetOverridden;
|
||||||
XReverbSettings reverbSettings;
|
XAUDIOREVERBSETTINGS reverbSettings;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct XSoundDriverGlobals
|
struct SndDriverGlobals
|
||||||
{
|
{
|
||||||
qint32 reverbSettingsPtr;
|
qint32 reverbSettingsPtr;
|
||||||
XAudioReverbSettings reverbSettings;
|
XaReverbSettings reverbSettings;
|
||||||
qint32 namePtr;
|
qint32 namePtr;
|
||||||
QString name;
|
QString name;
|
||||||
};
|
};
|
||||||
@ -2915,9 +2915,9 @@ union XAssetHeader
|
|||||||
Font_s *font;
|
Font_s *font;
|
||||||
MenuList *menuList;
|
MenuList *menuList;
|
||||||
menuDef_t *menu;
|
menuDef_t *menu;
|
||||||
XLocalizeEntry *localize;
|
LocalizeEntry *localize;
|
||||||
WeaponDef *weapon;
|
WeaponDef *weapon;
|
||||||
XSoundDriverGlobals *sndDriverGlobals;
|
SndDriverGlobals *sndDriverGlobals;
|
||||||
const FxEffectDef *fx;
|
const FxEffectDef *fx;
|
||||||
FxImpactTable *impactFx;
|
FxImpactTable *impactFx;
|
||||||
RawFile *rawfile;
|
RawFile *rawfile;
|
||||||
@ -3000,7 +3000,7 @@ private:
|
|||||||
void Load_GfxWorldVertex0Array(QDataStream *aStream, int count);
|
void Load_GfxWorldVertex0Array(QDataStream *aStream, int count);
|
||||||
QVector<XAUDIOCHANNELMAPENTRY> Load_XAUDIOCHANNELMAPENTRYArray(QDataStream *aStream, int count);
|
QVector<XAUDIOCHANNELMAPENTRY> Load_XAUDIOCHANNELMAPENTRYArray(QDataStream *aStream, int count);
|
||||||
StreamFileNamePacked Load_StreamFileNamePacked(QDataStream *aStream);
|
StreamFileNamePacked Load_StreamFileNamePacked(QDataStream *aStream);
|
||||||
QVector<XAudioReverbSettings> Load_XaReverbSettingsArray(QDataStream *aStream, int count);
|
QVector<XaReverbSettings> Load_XaReverbSettingsArray(QDataStream *aStream, int count);
|
||||||
QVector<char> Load_char2048Array(QDataStream *aStream, size_t count);
|
QVector<char> Load_char2048Array(QDataStream *aStream, size_t count);
|
||||||
QVector<DObjAnimMat> Load_DObjAnimMatArray(QDataStream *aStream, int count);
|
QVector<DObjAnimMat> Load_DObjAnimMatArray(QDataStream *aStream, int count);
|
||||||
QVector<XBoneInfo> Load_XBoneInfoArray(QDataStream *aStream, int count);
|
QVector<XBoneInfo> Load_XBoneInfoArray(QDataStream *aStream, int count);
|
||||||
@ -3049,9 +3049,9 @@ private:
|
|||||||
QString Load_XStringCustom(QDataStream *aStream);
|
QString Load_XStringCustom(QDataStream *aStream);
|
||||||
QString Load_XString(QDataStream *aStream);
|
QString Load_XString(QDataStream *aStream);
|
||||||
RawFile Load_RawFile(QDataStream *aStream);
|
RawFile Load_RawFile(QDataStream *aStream);
|
||||||
XLocalizeEntry Load_LocalizeEntry(QDataStream *aStream);
|
LocalizeEntry Load_LocalizeEntry(QDataStream *aStream);
|
||||||
void Load_operandInternalDataUnion(QDataStream *aStream);
|
void Load_operandInternalDataUnion(QDataStream *aStream);
|
||||||
XComPrimaryLight Load_ComPrimaryLight(QDataStream *aStream);
|
ComPrimaryLight Load_ComPrimaryLight(QDataStream *aStream);
|
||||||
CollisionPartition Load_CollisionPartition(QDataStream *aStream);
|
CollisionPartition Load_CollisionPartition(QDataStream *aStream);
|
||||||
CLeafBrushNodeLeaf Load_CLeafBrushNodeLeaf(QDataStream *aStream, int leafBrushCount);
|
CLeafBrushNodeLeaf Load_CLeafBrushNodeLeaf(QDataStream *aStream, int leafBrushCount);
|
||||||
CLeafBrushNodeData Load_CLeafBrushNodeData(QDataStream *aStream, int aNodeCount);
|
CLeafBrushNodeData Load_CLeafBrushNodeData(QDataStream *aStream, int aNodeCount);
|
||||||
@ -3075,7 +3075,7 @@ private:
|
|||||||
XAUDIOCHANNELMAP Load_XAUDIOCHANNELMAP(QDataStream *aStream);
|
XAUDIOCHANNELMAP Load_XAUDIOCHANNELMAP(QDataStream *aStream);
|
||||||
SndCurve Load_SndCurve(QDataStream *aStream);
|
SndCurve Load_SndCurve(QDataStream *aStream);
|
||||||
StreamFileNameRaw Load_StreamFileNameRaw(QDataStream *aStream);
|
StreamFileNameRaw Load_StreamFileNameRaw(QDataStream *aStream);
|
||||||
XSoundDriverGlobals Load_SndDriverGlobals(QDataStream *aStream);
|
SndDriverGlobals Load_SndDriverGlobals(QDataStream *aStream);
|
||||||
XaSeekTable Load_XaSeekTable(QDataStream *aStream);
|
XaSeekTable Load_XaSeekTable(QDataStream *aStream);
|
||||||
XAUDIOPACKET_ALIGNED Load_XAUDIOPACKET_ALIGNED(QDataStream *aStream);
|
XAUDIOPACKET_ALIGNED Load_XAUDIOPACKET_ALIGNED(QDataStream *aStream);
|
||||||
XAnimNotifyInfo Load_XAnimNotifyInfo(QDataStream *aStream);
|
XAnimNotifyInfo Load_XAnimNotifyInfo(QDataStream *aStream);
|
||||||
@ -3092,7 +3092,7 @@ private:
|
|||||||
void Load_LocalizeEntryPtr(QDataStream *aStream);
|
void Load_LocalizeEntryPtr(QDataStream *aStream);
|
||||||
MultiDef Load_MultiDef(QDataStream *aStream);
|
MultiDef Load_MultiDef(QDataStream *aStream);
|
||||||
Operand Load_Operand(QDataStream *aStream);
|
Operand Load_Operand(QDataStream *aStream);
|
||||||
QVector<XComPrimaryLight> Load_ComPrimaryLightArray(QDataStream *aStream, int count);
|
QVector<ComPrimaryLight> Load_ComPrimaryLightArray(QDataStream *aStream, int count);
|
||||||
CBrushSide Load_cbrushside_t(QDataStream *aStream);
|
CBrushSide Load_cbrushside_t(QDataStream *aStream);
|
||||||
CBrush Load_CBrush(QDataStream *aStream);
|
CBrush Load_CBrush(QDataStream *aStream);
|
||||||
QVector<CollisionPartition> Load_CollisionPartitionArray(QDataStream *aStream, int count);
|
QVector<CollisionPartition> Load_CollisionPartitionArray(QDataStream *aStream, int count);
|
||||||
159
libs/assets/assets.pro
Normal file
159
libs/assets/assets.pro
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
QT += core widgets
|
||||||
|
TEMPLATE = lib
|
||||||
|
CONFIG += staticlib c++17
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
# Base class
|
||||||
|
assets.cpp \
|
||||||
|
animparts.cpp \
|
||||||
|
asset.cpp \
|
||||||
|
assetlist.cpp \
|
||||||
|
clipmap.cpp \
|
||||||
|
comworld.cpp \
|
||||||
|
d3dresource.cpp \
|
||||||
|
effectdef.cpp \
|
||||||
|
effecttable.cpp \
|
||||||
|
file.cpp \
|
||||||
|
font.cpp \
|
||||||
|
gameworld.cpp \
|
||||||
|
gfximage.cpp \
|
||||||
|
gfxlightdef.cpp \
|
||||||
|
gfxworld.cpp \
|
||||||
|
loadedsound.cpp \
|
||||||
|
localizeentry.cpp \
|
||||||
|
mapent.cpp \
|
||||||
|
material.cpp \
|
||||||
|
materialpixelshader.cpp \
|
||||||
|
materialtechset.cpp \
|
||||||
|
menudef.cpp \
|
||||||
|
menulist.cpp \
|
||||||
|
model.cpp \
|
||||||
|
rawfile.cpp \
|
||||||
|
scriptstringlist.cpp \
|
||||||
|
soundalias.cpp \
|
||||||
|
soundcurve.cpp \
|
||||||
|
sounddriver.cpp \
|
||||||
|
stringtable.cpp \
|
||||||
|
weapondef.cpp \
|
||||||
|
# 360 classes
|
||||||
|
360/assets_cod2_360.cpp \
|
||||||
|
360/assets_cod4_360.cpp \
|
||||||
|
360/assets_cod5_360.cpp \
|
||||||
|
360/assets_cod6_360.cpp \
|
||||||
|
360/assets_cod7_360.cpp \
|
||||||
|
360/assets_cod8_360.cpp \
|
||||||
|
360/assets_cod9_360.cpp \
|
||||||
|
360/assets_cod10_360.cpp \
|
||||||
|
360/assets_cod11_360.cpp \
|
||||||
|
360/assets_cod12_360.cpp \
|
||||||
|
# PS3 classes
|
||||||
|
PS3/assets_cod4_ps3.cpp \
|
||||||
|
PS3/assets_cod5_ps3.cpp \
|
||||||
|
PS3/assets_cod6_ps3.cpp \
|
||||||
|
PS3/assets_cod7_ps3.cpp \
|
||||||
|
PS3/assets_cod8_ps3.cpp \
|
||||||
|
PS3/assets_cod9_ps3.cpp \
|
||||||
|
PS3/assets_cod10_ps3.cpp \
|
||||||
|
PS3/assets_cod11_ps3.cpp \
|
||||||
|
PS3/assets_cod12_ps3.cpp \
|
||||||
|
# PC classes
|
||||||
|
PC/assets_cod4_pc.cpp \
|
||||||
|
PC/assets_cod5_pc.cpp \
|
||||||
|
PC/assets_cod6_pc.cpp \
|
||||||
|
PC/assets_cod7_pc.cpp \
|
||||||
|
PC/assets_cod8_pc.cpp \
|
||||||
|
PC/assets_cod9_pc.cpp \
|
||||||
|
PC/assets_cod10_pc.cpp \
|
||||||
|
PC/assets_cod11_pc.cpp \
|
||||||
|
PC/assets_cod12_pc.cpp \
|
||||||
|
# Wii classes
|
||||||
|
Wii/assets_cod4_wii.cpp \
|
||||||
|
Wii/assets_cod7_wii.cpp \
|
||||||
|
Wii/assets_cod8_wii.cpp \
|
||||||
|
# WiiU classes
|
||||||
|
WiiU/assets_cod9_wiiu.cpp \
|
||||||
|
WiiU/assets_cod10_wiiu.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
# Base class
|
||||||
|
animparts.h \
|
||||||
|
asset.h \
|
||||||
|
assetlist.h \
|
||||||
|
assetmap.h \
|
||||||
|
assets.h \
|
||||||
|
# 360 classes
|
||||||
|
360/assets_cod2_360.h \
|
||||||
|
360/assets_cod4_360.h \
|
||||||
|
360/assets_cod5_360.h \
|
||||||
|
360/assets_cod6_360.h \
|
||||||
|
360/assets_cod7_360.h \
|
||||||
|
360/assets_cod8_360.h \
|
||||||
|
360/assets_cod9_360.h \
|
||||||
|
360/assets_cod10_360.h \
|
||||||
|
360/assets_cod11_360.h \
|
||||||
|
360/assets_cod12_360.h \
|
||||||
|
# PS3 classes
|
||||||
|
PS3/assets_cod4_ps3.h \
|
||||||
|
PS3/assets_cod5_ps3.h \
|
||||||
|
PS3/assets_cod6_ps3.h \
|
||||||
|
PS3/assets_cod7_ps3.h \
|
||||||
|
PS3/assets_cod8_ps3.h \
|
||||||
|
PS3/assets_cod9_ps3.h \
|
||||||
|
PS3/assets_cod10_ps3.h \
|
||||||
|
PS3/assets_cod11_ps3.h \
|
||||||
|
PS3/assets_cod12_ps3.h \
|
||||||
|
# PC classes
|
||||||
|
PC/assets_cod4_pc.h \
|
||||||
|
PC/assets_cod5_pc.h \
|
||||||
|
PC/assets_cod6_pc.h \
|
||||||
|
PC/assets_cod7_pc.h \
|
||||||
|
PC/assets_cod8_pc.h \
|
||||||
|
PC/assets_cod9_pc.h \
|
||||||
|
PC/assets_cod10_pc.h \
|
||||||
|
PC/assets_cod11_pc.h \
|
||||||
|
PC/assets_cod12_pc.h \
|
||||||
|
# Wii classes
|
||||||
|
Wii/assets_cod4_wii.h \
|
||||||
|
Wii/assets_cod7_wii.h \
|
||||||
|
Wii/assets_cod8_wii.h \
|
||||||
|
# WiiU classes
|
||||||
|
WiiU/assets_cod9_wiiu.h \
|
||||||
|
WiiU/assets_cod10_wiiu.h \
|
||||||
|
clipmap.h \
|
||||||
|
comworld.h \
|
||||||
|
d3dresource.h \
|
||||||
|
effectdef.h \
|
||||||
|
effecttable.h \
|
||||||
|
file.h \
|
||||||
|
font.h \
|
||||||
|
gameworld.h \
|
||||||
|
gfximage.h \
|
||||||
|
gfxlightdef.h \
|
||||||
|
gfxworld.h \
|
||||||
|
loadedsound.h \
|
||||||
|
localizeentry.h \
|
||||||
|
mapent.h \
|
||||||
|
material.h \
|
||||||
|
materialpixelshader.h \
|
||||||
|
materialtechset.h \
|
||||||
|
menudef.h \
|
||||||
|
menulist.h \
|
||||||
|
model.h \
|
||||||
|
rawfile.h \
|
||||||
|
scriptstringlist.h \
|
||||||
|
soundalias.h \
|
||||||
|
soundcurve.h \
|
||||||
|
sounddriver.h \
|
||||||
|
stringtable.h \
|
||||||
|
weapondef.h
|
||||||
|
|
||||||
|
LIBS += \
|
||||||
|
-L$$OUT_PWD/../libs/core -lcore
|
||||||
|
|
||||||
|
INCLUDEPATH += \
|
||||||
|
$$PWD/../core
|
||||||
|
|
||||||
|
DEPENDPATH += \
|
||||||
|
$$PWD/../core
|
||||||
|
|
||||||
|
DESTDIR = $$OUT_PWD/../
|
||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef CLIPMAP_H
|
#ifndef CLIPMAP_H
|
||||||
#define CLIPMAP_H
|
#define CLIPMAP_H
|
||||||
|
|
||||||
#include "xmodel.h"
|
#include "model.h"
|
||||||
#include "mapent.h"
|
#include "mapent.h"
|
||||||
#include "effectdef.h"
|
#include "effectdef.h"
|
||||||
|
|
||||||
1
libs/assets/comworld.cpp
Normal file
1
libs/assets/comworld.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "comworld.h"
|
||||||
30
libs/assets/comworld.h
Normal file
30
libs/assets/comworld.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#ifndef COMWORLD_H
|
||||||
|
#define COMWORLD_H
|
||||||
|
|
||||||
|
struct ComPrimaryLight
|
||||||
|
{
|
||||||
|
unsigned __int8 type;
|
||||||
|
unsigned __int8 canUseShadowMap;
|
||||||
|
unsigned __int8 exponent;
|
||||||
|
unsigned __int8 unused;
|
||||||
|
float color[3];
|
||||||
|
float dir[3];
|
||||||
|
float origin[3];
|
||||||
|
float radius;
|
||||||
|
float cosHalfFovOuter;
|
||||||
|
float cosHalfFovInner;
|
||||||
|
float cosHalfFovExpanded;
|
||||||
|
float rotationLimit;
|
||||||
|
float translationLimit;
|
||||||
|
const char *defName;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ComWorld
|
||||||
|
{
|
||||||
|
const char *name;
|
||||||
|
int isInUse;
|
||||||
|
unsigned int primaryLightCount;
|
||||||
|
ComPrimaryLight *primaryLights;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // COMWORLD_H
|
||||||
@ -2,7 +2,7 @@
|
|||||||
#define EFFECTDEF_H
|
#define EFFECTDEF_H
|
||||||
|
|
||||||
#include "material.h"
|
#include "material.h"
|
||||||
#include "xmodel.h"
|
#include "model.h"
|
||||||
|
|
||||||
struct FxSpawnDefLooping
|
struct FxSpawnDefLooping
|
||||||
{
|
{
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user