Compare commits
2 Commits
cfa0638b94
...
729a6bac7c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
729a6bac7c | ||
|
|
be8aa3691e |
4
.vscode/settings.json
vendored
Normal file
4
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"workbench.colorTheme": "Default Dark Modern",
|
||||||
|
"workbench.startupEditor": "none"
|
||||||
|
}
|
||||||
63
app/app.pro
63
app/app.pro
@ -6,66 +6,9 @@ SUBDIRS += app
|
|||||||
|
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += $$files($$PWD/*.cpp)
|
||||||
aboutdialog.cpp \
|
HEADERS += $$files($$PWD/*.h)
|
||||||
ddsviewer.cpp \
|
FORMS += $$files($$PWD/*.ui)
|
||||||
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 "rawfile.h"
|
#include "xrawfile.h"
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef STRINGTABLEVIEWER_H
|
#ifndef STRINGTABLEVIEWER_H
|
||||||
#define STRINGTABLEVIEWER_H
|
#define STRINGTABLEVIEWER_H
|
||||||
|
|
||||||
#include "stringtable.h"
|
#include "xstringtable.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 "rawfile.h"
|
#include "xrawfile.h"
|
||||||
#include "gfximage.h"
|
#include "gfximage.h"
|
||||||
#include "stringtable.h"
|
#include "xstringtable.h"
|
||||||
#include "menudef.h"
|
#include "menudef.h"
|
||||||
|
|
||||||
#include <QTreeWidget>
|
#include <QTreeWidget>
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
#include "asset.h"
|
|
||||||
@ -1,112 +0,0 @@
|
|||||||
#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,159 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
#include "comworld.h"
|
|
||||||
@ -1,30 +0,0 @@
|
|||||||
#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
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#include "localizeentry.h"
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
#ifndef LOCALIZEENTRY_H
|
|
||||||
#define LOCALIZEENTRY_H
|
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
struct p_LocalizeEntry
|
|
||||||
{
|
|
||||||
const char *value;
|
|
||||||
const char *name;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct LocalizeEntry : p_LocalizeEntry
|
|
||||||
{
|
|
||||||
QString value;
|
|
||||||
QString name;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // LOCALIZEENTRY_H
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#include "mapent.h"
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
#ifndef MAPENT_H
|
|
||||||
#define MAPENT_H
|
|
||||||
|
|
||||||
struct MapEnts
|
|
||||||
{
|
|
||||||
const char *name;
|
|
||||||
char *entityString;
|
|
||||||
int numEntityChars;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // MAPENT_H
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#include "model.h"
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#include "rawfile.h"
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
#ifndef RAWFILE_H
|
|
||||||
#define RAWFILE_H
|
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
struct RawFile
|
|
||||||
{
|
|
||||||
qint32 namePtr;
|
|
||||||
QString name;
|
|
||||||
|
|
||||||
quint32 length;
|
|
||||||
|
|
||||||
qint32 bufferPtr;
|
|
||||||
QByteArray buffer;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // RAWFILE_H
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#include "soundalias.h"
|
|
||||||
@ -1,103 +0,0 @@
|
|||||||
#ifndef SOUNDALIAS_H
|
|
||||||
#define SOUNDALIAS_H
|
|
||||||
|
|
||||||
#include "soundcurve.h"
|
|
||||||
#include "loadedsound.h"
|
|
||||||
|
|
||||||
struct StreamFileNameRaw
|
|
||||||
{
|
|
||||||
const char *dir;
|
|
||||||
const char *name;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct StreamFileNamePacked
|
|
||||||
{
|
|
||||||
unsigned int offset;
|
|
||||||
unsigned int length;
|
|
||||||
};
|
|
||||||
|
|
||||||
union StreamFileInfo
|
|
||||||
{
|
|
||||||
StreamFileNameRaw raw;
|
|
||||||
StreamFileNamePacked packed;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct StreamFileName
|
|
||||||
{
|
|
||||||
unsigned int fileIndex;
|
|
||||||
StreamFileInfo info;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct StreamedSound
|
|
||||||
{
|
|
||||||
StreamFileName filename;
|
|
||||||
};
|
|
||||||
|
|
||||||
union SoundFileRef
|
|
||||||
{
|
|
||||||
LoadedSound *loadSnd;
|
|
||||||
StreamedSound streamSnd;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct SoundFile
|
|
||||||
{
|
|
||||||
unsigned __int8 type;
|
|
||||||
unsigned __int8 exists;
|
|
||||||
SoundFileRef u;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct XAUDIOCHANNELMAPENTRY
|
|
||||||
{
|
|
||||||
unsigned __int8 InputChannel;
|
|
||||||
unsigned __int8 OutputChannel;
|
|
||||||
float Volume;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct XAUDIOCHANNELMAP
|
|
||||||
{
|
|
||||||
unsigned __int8 EntryCount;
|
|
||||||
XAUDIOCHANNELMAPENTRY *paEntries;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct SpeakerMap
|
|
||||||
{
|
|
||||||
bool isDefault;
|
|
||||||
const char *name;
|
|
||||||
XAUDIOCHANNELMAP channelMaps[2][2];
|
|
||||||
};
|
|
||||||
|
|
||||||
struct snd_alias_t
|
|
||||||
{
|
|
||||||
const char *aliasName;
|
|
||||||
const char *subtitle;
|
|
||||||
const char *secondaryAliasName;
|
|
||||||
const char *chainAliasName;
|
|
||||||
SoundFile *soundFile;
|
|
||||||
int sequence;
|
|
||||||
float volMin;
|
|
||||||
float volMax;
|
|
||||||
float pitchMin;
|
|
||||||
float pitchMax;
|
|
||||||
float distMin;
|
|
||||||
float distMax;
|
|
||||||
int flags;
|
|
||||||
float slavePercentage;
|
|
||||||
float probability;
|
|
||||||
float lfePercentage;
|
|
||||||
float centerPercentage;
|
|
||||||
int startDelay;
|
|
||||||
SoundCurve *volumeFalloffCurve;
|
|
||||||
float envelopMin;
|
|
||||||
float envelopMax;
|
|
||||||
float envelopPercentage;
|
|
||||||
SpeakerMap *speakerMap;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct SoundAliasList
|
|
||||||
{
|
|
||||||
const char *aliasName;
|
|
||||||
snd_alias_t *head;
|
|
||||||
int count;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // SOUNDALIAS_H
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#include "soundcurve.h"
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
#ifndef SOUNDCURVE_H
|
|
||||||
#define SOUNDCURVE_H
|
|
||||||
|
|
||||||
struct SoundCurve
|
|
||||||
{
|
|
||||||
const char *filename;
|
|
||||||
int knotCount;
|
|
||||||
float knots[8][2];
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // SOUNDCURVE_H
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#include "sounddriver.h"
|
|
||||||
@ -1,46 +0,0 @@
|
|||||||
#ifndef SoundDriver_H
|
|
||||||
#define SoundDriver_H
|
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
struct XAUDIOREVERBSETTINGS
|
|
||||||
{
|
|
||||||
unsigned int ReflectionsDelay;
|
|
||||||
unsigned __int8 ReverbDelay;
|
|
||||||
unsigned __int8 RearDelay;
|
|
||||||
unsigned __int8 PositionLeft;
|
|
||||||
unsigned __int8 PositionRight;
|
|
||||||
unsigned __int8 PositionMatrixLeft;
|
|
||||||
unsigned __int8 PositionMatrixRight;
|
|
||||||
unsigned __int8 EarlyDiffusion;
|
|
||||||
unsigned __int8 LateDiffusion;
|
|
||||||
unsigned __int8 LowEQGain;
|
|
||||||
unsigned __int8 LowEQCutoff;
|
|
||||||
unsigned __int8 HighEQGain;
|
|
||||||
unsigned __int8 HighEQCutoff;
|
|
||||||
float RoomFilterFreq;
|
|
||||||
float RoomFilterMain;
|
|
||||||
float RoomFilterHF;
|
|
||||||
float ReflectionsGain;
|
|
||||||
float ReverbGain;
|
|
||||||
float DecayTime;
|
|
||||||
float Density;
|
|
||||||
float RoomSize;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct XaReverbSettings
|
|
||||||
{
|
|
||||||
int presetOverridden;
|
|
||||||
XAUDIOREVERBSETTINGS reverbSettings;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct SoundDriver
|
|
||||||
{
|
|
||||||
qint32 namePtr;
|
|
||||||
QString name;
|
|
||||||
|
|
||||||
qint32 reverbPtr;
|
|
||||||
XaReverbSettings *reverbSettings;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // SoundDriver_H
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#include "stringtable.h"
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#ifndef STRINGTABLESH_H
|
|
||||||
#define STRINGTABLESH_H
|
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
#include <QList>
|
|
||||||
|
|
||||||
struct StringTable
|
|
||||||
{
|
|
||||||
qint32 namePtr;
|
|
||||||
QString name;
|
|
||||||
|
|
||||||
int columnCount;
|
|
||||||
int rowCount;
|
|
||||||
|
|
||||||
qint32 valuesPtr;
|
|
||||||
QStringList values;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // STRINGTABLESH_H
|
|
||||||
@ -3,15 +3,8 @@ TEMPLATE = lib
|
|||||||
CONFIG += staticlib c++17
|
CONFIG += staticlib c++17
|
||||||
DEFINES += MINILZO_USE_STATIC
|
DEFINES += MINILZO_USE_STATIC
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += $$files($$PWD/*.cpp, true)
|
||||||
compression.cpp \
|
HEADERS += $$files($$PWD/*.h, true)
|
||||||
minilzo.c \
|
|
||||||
lzoconf.h \
|
|
||||||
lzodefs.h
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
compression.h \
|
|
||||||
minilzo.h
|
|
||||||
|
|
||||||
LIBS += \
|
LIBS += \
|
||||||
-L$$PWD/../../third_party/xbox_sdk/lib -lxcompress64 \
|
-L$$PWD/../../third_party/xbox_sdk/lib -lxcompress64 \
|
||||||
|
|||||||
@ -2,23 +2,7 @@ QT += core widgets
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib c++17
|
CONFIG += staticlib c++17
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += $$files($$PWD/*.cpp, true)
|
||||||
highlighter_cfg.cpp \
|
HEADERS += $$files($$PWD/*.h, true)
|
||||||
highlighter_shock.cpp \
|
|
||||||
highlighter_rumble.cpp \
|
|
||||||
highlighter_gsc.cpp \
|
|
||||||
logmanager.cpp \
|
|
||||||
statusbarmanager.cpp
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
enums.h \
|
|
||||||
highlighter_cfg.h \
|
|
||||||
highlighter_shock.h \
|
|
||||||
highlighter_rumble.h \
|
|
||||||
highlighter_gsc.h \
|
|
||||||
logmanager.h \
|
|
||||||
stringutils.h \
|
|
||||||
utils.h \
|
|
||||||
statusbarmanager.h
|
|
||||||
|
|
||||||
DESTDIR = $$OUT_PWD/../
|
DESTDIR = $$OUT_PWD/../
|
||||||
|
|||||||
@ -2,13 +2,8 @@ QT += core
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib c++17
|
CONFIG += staticlib c++17
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += $$files($$PWD/*.cpp, true)
|
||||||
ddsfile.cpp
|
HEADERS += $$files($$PWD/*.h, true)
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
dds_structs.h \
|
|
||||||
ddsfile.h \
|
|
||||||
enums.h
|
|
||||||
|
|
||||||
LIBS += \
|
LIBS += \
|
||||||
-L$$PWD/../../third_party/devil_sdk/lib/ -lDevIL \
|
-L$$PWD/../../third_party/devil_sdk/lib/ -lDevIL \
|
||||||
|
|||||||
@ -2,20 +2,8 @@ QT += core
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib c++17
|
CONFIG += staticlib c++17
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += $$files($$PWD/*.cpp, true)
|
||||||
salsa20.cpp \
|
HEADERS += $$files($$PWD/*.h, true)
|
||||||
sha1.cpp \
|
|
||||||
encryption.cpp
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
ecrypt-config.h \
|
|
||||||
ecrypt-machine.h \
|
|
||||||
ecrypt-portable.h \
|
|
||||||
ecrypt-sync.h \
|
|
||||||
encryption.h \
|
|
||||||
os_types.h \
|
|
||||||
config_win32.h \
|
|
||||||
sha1.h
|
|
||||||
|
|
||||||
app.depends += \
|
app.depends += \
|
||||||
compression
|
compression
|
||||||
|
|||||||
@ -2,90 +2,8 @@ QT += core widgets
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib c++17
|
CONFIG += staticlib c++17
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += $$files($$PWD/*.cpp, true)
|
||||||
# Base class & factory
|
HEADERS += $$files($$PWD/*.h, true)
|
||||||
fastfile.cpp \
|
|
||||||
# 360 classes
|
|
||||||
360/fastfile_cod2_360.cpp \
|
|
||||||
360/fastfile_cod4_360.cpp \
|
|
||||||
360/fastfile_cod5_360.cpp \
|
|
||||||
360/fastfile_cod6_360.cpp \
|
|
||||||
360/fastfile_cod7_360.cpp \
|
|
||||||
360/fastfile_cod8_360.cpp \
|
|
||||||
360/fastfile_cod9_360.cpp \
|
|
||||||
360/fastfile_cod10_360.cpp \
|
|
||||||
360/fastfile_cod11_360.cpp \
|
|
||||||
360/fastfile_cod12_360.cpp \
|
|
||||||
# PS3 classes
|
|
||||||
PS3/fastfile_cod4_ps3.cpp \
|
|
||||||
PS3/fastfile_cod5_ps3.cpp \
|
|
||||||
PS3/fastfile_cod6_ps3.cpp \
|
|
||||||
PS3/fastfile_cod7_ps3.cpp \
|
|
||||||
PS3/fastfile_cod8_ps3.cpp \
|
|
||||||
PS3/fastfile_cod9_ps3.cpp \
|
|
||||||
PS3/fastfile_cod10_ps3.cpp \
|
|
||||||
PS3/fastfile_cod11_ps3.cpp \
|
|
||||||
PS3/fastfile_cod12_ps3.cpp \
|
|
||||||
# PC classes
|
|
||||||
PC/fastfile_cod4_pc.cpp \
|
|
||||||
PC/fastfile_cod5_pc.cpp \
|
|
||||||
PC/fastfile_cod6_pc.cpp \
|
|
||||||
PC/fastfile_cod7_pc.cpp \
|
|
||||||
PC/fastfile_cod8_pc.cpp \
|
|
||||||
PC/fastfile_cod9_pc.cpp \
|
|
||||||
PC/fastfile_cod10_pc.cpp \
|
|
||||||
PC/fastfile_cod11_pc.cpp \
|
|
||||||
PC/fastfile_cod12_pc.cpp \
|
|
||||||
# Wii Classes
|
|
||||||
Wii/fastfile_cod4_wii.cpp \
|
|
||||||
Wii/fastfile_cod7_wii.cpp \
|
|
||||||
Wii/fastfile_cod8_wii.cpp \
|
|
||||||
# WiiU Classes
|
|
||||||
WiiU/fastfile_cod9_wiiu.cpp \
|
|
||||||
WiiU/fastfile_cod10_wiiu.cpp
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
# Base class & factory
|
|
||||||
fastfile.h \
|
|
||||||
fastfile_factory.h \
|
|
||||||
# 360 classes
|
|
||||||
360/fastfile_cod2_360.h \
|
|
||||||
360/fastfile_cod4_360.h \
|
|
||||||
360/fastfile_cod5_360.h \
|
|
||||||
360/fastfile_cod6_360.h \
|
|
||||||
360/fastfile_cod7_360.h \
|
|
||||||
360/fastfile_cod8_360.h \
|
|
||||||
360/fastfile_cod9_360.h \
|
|
||||||
360/fastfile_cod10_360.h \
|
|
||||||
360/fastfile_cod11_360.h \
|
|
||||||
360/fastfile_cod12_360.h \
|
|
||||||
# PS3 classes
|
|
||||||
PS3/fastfile_cod4_ps3.h \
|
|
||||||
PS3/fastfile_cod5_ps3.h \
|
|
||||||
PS3/fastfile_cod6_ps3.h \
|
|
||||||
PS3/fastfile_cod7_ps3.h \
|
|
||||||
PS3/fastfile_cod8_ps3.h \
|
|
||||||
PS3/fastfile_cod9_ps3.h \
|
|
||||||
PS3/fastfile_cod10_ps3.h \
|
|
||||||
PS3/fastfile_cod11_ps3.h \
|
|
||||||
PS3/fastfile_cod12_ps3.h \
|
|
||||||
# PC classes
|
|
||||||
PC/fastfile_cod4_pc.h \
|
|
||||||
PC/fastfile_cod5_pc.h \
|
|
||||||
PC/fastfile_cod6_pc.h \
|
|
||||||
PC/fastfile_cod7_pc.h \
|
|
||||||
PC/fastfile_cod8_pc.h \
|
|
||||||
PC/fastfile_cod9_pc.h \
|
|
||||||
PC/fastfile_cod10_pc.h \
|
|
||||||
PC/fastfile_cod11_pc.h \
|
|
||||||
PC/fastfile_cod12_pc.h \
|
|
||||||
# Wii Classes
|
|
||||||
Wii/fastfile_cod4_wii.h \
|
|
||||||
Wii/fastfile_cod7_wii.h \
|
|
||||||
Wii/fastfile_cod8_wii.h \
|
|
||||||
# WiiU classes
|
|
||||||
WiiU/fastfile_cod9_wiiu.h \
|
|
||||||
WiiU/fastfile_cod10_wiiu.h
|
|
||||||
|
|
||||||
LIBS += \
|
LIBS += \
|
||||||
-L$$OUT_PWD/../libs/core -lcore \
|
-L$$OUT_PWD/../libs/core -lcore \
|
||||||
|
|||||||
@ -2,10 +2,7 @@ QT += core
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib c++17
|
CONFIG += staticlib c++17
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += $$files($$PWD/*.cpp, true)
|
||||||
ipakfile.cpp
|
HEADERS += $$files($$PWD/*.h, true)
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
ipak_structs.h
|
|
||||||
|
|
||||||
DESTDIR = $$OUT_PWD/../
|
DESTDIR = $$OUT_PWD/../
|
||||||
|
|||||||
@ -2,11 +2,8 @@ QT += core
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib c++17
|
CONFIG += staticlib c++17
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += $$files($$PWD/*.cpp, true)
|
||||||
iwifile.cpp
|
HEADERS += $$files($$PWD/*.h, true)
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
iwifile.h
|
|
||||||
|
|
||||||
LIBS += \
|
LIBS += \
|
||||||
-L$$PWD/../../third_party/devil_sdk/lib/ -lDevIL \
|
-L$$PWD/../../third_party/devil_sdk/lib/ -lDevIL \
|
||||||
|
|||||||
@ -4,7 +4,7 @@ SUBDIRS += core \
|
|||||||
compression \
|
compression \
|
||||||
encryption \
|
encryption \
|
||||||
fastfile \
|
fastfile \
|
||||||
assets \
|
xassets \
|
||||||
zonefile \
|
zonefile \
|
||||||
ddsfile \
|
ddsfile \
|
||||||
iwifile \
|
iwifile \
|
||||||
|
|||||||
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