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
|
||||
|
||||
SOURCES += $$files($$PWD/*.cpp)
|
||||
HEADERS += $$files($$PWD/*.h)
|
||||
FORMS += $$files($$PWD/*.ui)
|
||||
SOURCES += \
|
||||
aboutdialog.cpp \
|
||||
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
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef RUMBLEFILEVIEWER_H
|
||||
#define RUMBLEFILEVIEWER_H
|
||||
|
||||
#include "xrawfile.h"
|
||||
#include "rawfile.h"
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef STRINGTABLEVIEWER_H
|
||||
#define STRINGTABLEVIEWER_H
|
||||
|
||||
#include "xstringtable.h"
|
||||
#include "stringtable.h"
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
@ -7,9 +7,9 @@
|
||||
#include "fastfile.h"
|
||||
#include "xtreewidgetitem.h"
|
||||
#include "zonefile.h"
|
||||
#include "xrawfile.h"
|
||||
#include "rawfile.h"
|
||||
#include "gfximage.h"
|
||||
#include "xstringtable.h"
|
||||
#include "stringtable.h"
|
||||
#include "menudef.h"
|
||||
|
||||
#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
|
||||
#define ASSETLIST_H
|
||||
|
||||
#include "xasset.h"
|
||||
#include "asset.h"
|
||||
#include "scriptstringlist.h"
|
||||
|
||||
struct XAssetList
|
||||
@ -2,7 +2,7 @@
|
||||
#define ASSETMAP_H
|
||||
|
||||
#include "animparts.h"
|
||||
#include "xmodel.h"
|
||||
#include "model.h"
|
||||
#include "material.h"
|
||||
#include "materialpixelshader.h"
|
||||
#include "materialtechset.h"
|
||||
@ -11,7 +11,7 @@
|
||||
#include "soundcurve.h"
|
||||
#include "loadedsound.h"
|
||||
#include "clipmap.h"
|
||||
#include "xcomworld.h"
|
||||
#include "comworld.h"
|
||||
#include "gameworld.h"
|
||||
#include "mapent.h"
|
||||
#include "gfxworld.h"
|
||||
@ -20,13 +20,13 @@
|
||||
#include "font.h"
|
||||
#include "menulist.h"
|
||||
#include "menudef.h"
|
||||
#include "xlocalizeentry.h"
|
||||
#include "localizeentry.h"
|
||||
#include "weapondef.h"
|
||||
#include "xsounddriverglobals.h"
|
||||
#include "sounddriver.h"
|
||||
#include "effectdef.h"
|
||||
#include "effecttable.h"
|
||||
#include "xrawfile.h"
|
||||
#include "xstringtable.h"
|
||||
#include "rawfile.h"
|
||||
#include "stringtable.h"
|
||||
|
||||
struct AssetMap {
|
||||
QVector<Animation> animations;
|
||||
@ -1065,14 +1065,14 @@ GfxVertexBuffer Assets::Load_GfxVertexBuffer(QDataStream *aStream)
|
||||
GfxVertexBuffer result;
|
||||
|
||||
*aStream
|
||||
>> result.Format.request.Type
|
||||
>> result.Format.request.BaseAddress
|
||||
>> result.Format.request.Endian
|
||||
>> result.Format.request.Size
|
||||
>> result.Format.request.AddressClamp
|
||||
>> result.Format.request.
|
||||
>> result.Format.request.RequestSize
|
||||
>> result.Format.request.ClampDisable
|
||||
>> result.Format.__s0.Type
|
||||
>> result.Format.__s0.BaseAddress
|
||||
>> result.Format.__s0.Endian
|
||||
>> result.Format.__s0.Size
|
||||
>> result.Format.__s0.AddressClamp
|
||||
>> result.Format.__s0.
|
||||
>> result.Format.__s0.RequestSize
|
||||
>> result.Format.__s0.ClampDisable
|
||||
>> result.Format.dword[0]
|
||||
>> result.Format.dword[1]
|
||||
>> result.Common
|
||||
@ -1110,6 +1110,11 @@ QVector<XSurfaceCollisionNode> Assets::Load_XSurfaceCollisionNodeArray(QDataStre
|
||||
return result;
|
||||
}
|
||||
|
||||
struct XSurfaceCollisionLeaf
|
||||
{
|
||||
unsigned __int16 triangleBeginIndex;
|
||||
};
|
||||
|
||||
// ?Load_XSurfaceCollisionLeafArray@@YAX_NH@Z at 0x822a4fb8
|
||||
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
|
||||
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++) {
|
||||
XAudioReverbSettings xaReverbSettings;
|
||||
XaReverbSettings xaReverbSettings;
|
||||
|
||||
*aStream
|
||||
>> xaReverbSettings.presetOverridden
|
||||
@ -2492,9 +2497,9 @@ RawFile Assets::Load_RawFile(QDataStream *aStream)
|
||||
|
||||
|
||||
// ?Load_LocalizeEntry@@YAX_N@Z at 0x822a5ef0
|
||||
XLocalizeEntry Assets::Load_LocalizeEntry(QDataStream *aStream)
|
||||
LocalizeEntry Assets::Load_LocalizeEntry(QDataStream *aStream)
|
||||
{
|
||||
XLocalizeEntry result;
|
||||
LocalizeEntry result;
|
||||
|
||||
*aStream
|
||||
>> result.valuePtr
|
||||
@ -2525,9 +2530,9 @@ void Assets::Load_operandInternalDataUnion(QDataStream *aStream)
|
||||
|
||||
|
||||
// ?Load_ComPrimaryLight@@YAX_N@Z at 0x822a6098
|
||||
XComPrimaryLight Assets::Load_ComPrimaryLight(QDataStream *aStream)
|
||||
ComPrimaryLight Assets::Load_ComPrimaryLight(QDataStream *aStream)
|
||||
{
|
||||
XComPrimaryLight result;
|
||||
ComPrimaryLight result;
|
||||
|
||||
*aStream
|
||||
>> result.type
|
||||
@ -3235,9 +3240,9 @@ StreamFileNameRaw Assets::Load_StreamFileNameRaw(QDataStream *aStream)
|
||||
|
||||
|
||||
// ?Load_SndDriverGlobals@@YAX_N@Z at 0x822a6f48
|
||||
XSoundDriverGlobals Assets::Load_SndDriverGlobals(QDataStream *aStream)
|
||||
SndDriverGlobals Assets::Load_SndDriverGlobals(QDataStream *aStream)
|
||||
{
|
||||
XSoundDriverGlobals result;
|
||||
SndDriverGlobals result;
|
||||
|
||||
*aStream
|
||||
>> result.reverbSettingsPtr
|
||||
@ -3245,7 +3250,7 @@ XSoundDriverGlobals Assets::Load_SndDriverGlobals(QDataStream *aStream)
|
||||
|
||||
if (result.reverbSettingsPtr)
|
||||
{
|
||||
XAudioReverbSettings xaReverbSettings;
|
||||
XaReverbSettings xaReverbSettings;
|
||||
|
||||
*aStream
|
||||
>> xaReverbSettings.presetOverridden
|
||||
@ -3550,9 +3555,9 @@ RawFile Assets::Load_RawFilePtr(QDataStream *aStream)
|
||||
|
||||
|
||||
// ?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;
|
||||
|
||||
*aStream >> localizeEntryPtr;
|
||||
@ -3630,12 +3635,12 @@ Operand Assets::Load_Operand(QDataStream *aStream)
|
||||
|
||||
|
||||
// ?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++) {
|
||||
XComPrimaryLight comPrimaryLight;
|
||||
ComPrimaryLight comPrimaryLight;
|
||||
|
||||
*aStream
|
||||
>> comPrimaryLight.type
|
||||
@ -4198,7 +4203,7 @@ void Assets::Load_StreamFileInfo(QDataStream *aStream)
|
||||
// ?Load_SndDriverGlobalsPtr@@YAX_N@Z at 0x822a8640
|
||||
void Assets::Load_SndDriverGlobalsPtr(QDataStream *aStream)
|
||||
{
|
||||
XSoundDriverGlobals result;
|
||||
SndDriverGlobals result;
|
||||
qint32 sndDriverGlobalsPtr;
|
||||
|
||||
*aStream >> sndDriverGlobalsPtr;
|
||||
@ -9345,7 +9350,7 @@ clipMap_t Assets::Load_clipMap_t(QDataStream *aStream)
|
||||
if (result.planesPtr == -1)
|
||||
{
|
||||
for (int i = 0; i < result.planeCount; i++) {
|
||||
result.planes << XAsset::Load_cplane_s(aStream);
|
||||
result.planes << Asset::Load_cplane_s(aStream);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef ASSETS_H
|
||||
#define ASSETS_H
|
||||
|
||||
#include "xmodel.h"
|
||||
#include "model.h"
|
||||
#include <QDebug>
|
||||
#include <QObject>
|
||||
|
||||
@ -1119,7 +1119,7 @@ struct clipMap_t
|
||||
uint checksum;
|
||||
};
|
||||
|
||||
struct XComPrimaryLight
|
||||
struct ComPrimaryLight
|
||||
{
|
||||
quint8 type;
|
||||
quint8 canUseShadowMap;
|
||||
@ -1145,7 +1145,7 @@ struct ComWorld
|
||||
int isInUse;
|
||||
uint primaryLightCount;
|
||||
qint32 primaryLightsPtr;
|
||||
QVector<XComPrimaryLight> primaryLights;
|
||||
QVector<ComPrimaryLight> primaryLights;
|
||||
};
|
||||
|
||||
enum nodeType : qint32
|
||||
@ -2089,7 +2089,7 @@ struct MenuList
|
||||
QVector<menuDef_t> menus;
|
||||
};
|
||||
|
||||
struct XLocalizeEntry
|
||||
struct LocalizeEntry
|
||||
{
|
||||
qint32 valuePtr;
|
||||
QString value;
|
||||
@ -2817,7 +2817,7 @@ struct WeaponDef
|
||||
float adsDofEnd;
|
||||
};
|
||||
|
||||
struct XReverbSettings
|
||||
struct XAUDIOREVERBSETTINGS
|
||||
{
|
||||
uint ReflectionsDelay;
|
||||
quint8 ReverbDelay;
|
||||
@ -2842,16 +2842,16 @@ struct XReverbSettings
|
||||
float RoomSize;
|
||||
};
|
||||
|
||||
struct XAudioReverbSettings
|
||||
struct XaReverbSettings
|
||||
{
|
||||
int presetOverridden;
|
||||
XReverbSettings reverbSettings;
|
||||
XAUDIOREVERBSETTINGS reverbSettings;
|
||||
};
|
||||
|
||||
struct XSoundDriverGlobals
|
||||
struct SndDriverGlobals
|
||||
{
|
||||
qint32 reverbSettingsPtr;
|
||||
XAudioReverbSettings reverbSettings;
|
||||
XaReverbSettings reverbSettings;
|
||||
qint32 namePtr;
|
||||
QString name;
|
||||
};
|
||||
@ -2915,9 +2915,9 @@ union XAssetHeader
|
||||
Font_s *font;
|
||||
MenuList *menuList;
|
||||
menuDef_t *menu;
|
||||
XLocalizeEntry *localize;
|
||||
LocalizeEntry *localize;
|
||||
WeaponDef *weapon;
|
||||
XSoundDriverGlobals *sndDriverGlobals;
|
||||
SndDriverGlobals *sndDriverGlobals;
|
||||
const FxEffectDef *fx;
|
||||
FxImpactTable *impactFx;
|
||||
RawFile *rawfile;
|
||||
@ -3000,7 +3000,7 @@ private:
|
||||
void Load_GfxWorldVertex0Array(QDataStream *aStream, int count);
|
||||
QVector<XAUDIOCHANNELMAPENTRY> Load_XAUDIOCHANNELMAPENTRYArray(QDataStream *aStream, int count);
|
||||
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<DObjAnimMat> Load_DObjAnimMatArray(QDataStream *aStream, int count);
|
||||
QVector<XBoneInfo> Load_XBoneInfoArray(QDataStream *aStream, int count);
|
||||
@ -3049,9 +3049,9 @@ private:
|
||||
QString Load_XStringCustom(QDataStream *aStream);
|
||||
QString Load_XString(QDataStream *aStream);
|
||||
RawFile Load_RawFile(QDataStream *aStream);
|
||||
XLocalizeEntry Load_LocalizeEntry(QDataStream *aStream);
|
||||
LocalizeEntry Load_LocalizeEntry(QDataStream *aStream);
|
||||
void Load_operandInternalDataUnion(QDataStream *aStream);
|
||||
XComPrimaryLight Load_ComPrimaryLight(QDataStream *aStream);
|
||||
ComPrimaryLight Load_ComPrimaryLight(QDataStream *aStream);
|
||||
CollisionPartition Load_CollisionPartition(QDataStream *aStream);
|
||||
CLeafBrushNodeLeaf Load_CLeafBrushNodeLeaf(QDataStream *aStream, int leafBrushCount);
|
||||
CLeafBrushNodeData Load_CLeafBrushNodeData(QDataStream *aStream, int aNodeCount);
|
||||
@ -3075,7 +3075,7 @@ private:
|
||||
XAUDIOCHANNELMAP Load_XAUDIOCHANNELMAP(QDataStream *aStream);
|
||||
SndCurve Load_SndCurve(QDataStream *aStream);
|
||||
StreamFileNameRaw Load_StreamFileNameRaw(QDataStream *aStream);
|
||||
XSoundDriverGlobals Load_SndDriverGlobals(QDataStream *aStream);
|
||||
SndDriverGlobals Load_SndDriverGlobals(QDataStream *aStream);
|
||||
XaSeekTable Load_XaSeekTable(QDataStream *aStream);
|
||||
XAUDIOPACKET_ALIGNED Load_XAUDIOPACKET_ALIGNED(QDataStream *aStream);
|
||||
XAnimNotifyInfo Load_XAnimNotifyInfo(QDataStream *aStream);
|
||||
@ -3092,7 +3092,7 @@ private:
|
||||
void Load_LocalizeEntryPtr(QDataStream *aStream);
|
||||
MultiDef Load_MultiDef(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);
|
||||
CBrush Load_CBrush(QDataStream *aStream);
|
||||
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
|
||||
#define CLIPMAP_H
|
||||
|
||||
#include "xmodel.h"
|
||||
#include "model.h"
|
||||
#include "mapent.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
|
||||
|
||||
#include "material.h"
|
||||
#include "xmodel.h"
|
||||
#include "model.h"
|
||||
|
||||
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