mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-10 08:03:13 +00:00
Introduce clang-format (#240)
This commit is contained in:
committed by
GitHub
parent
e928fc9425
commit
b449da1fa3
@@ -4,70 +4,66 @@
|
||||
#include "decomp.h"
|
||||
#include "mxtypes.h"
|
||||
|
||||
#include <ddraw.h>
|
||||
#include <d3drmobj.h>
|
||||
#include <ddraw.h>
|
||||
|
||||
struct GifData
|
||||
{
|
||||
struct GifData {
|
||||
public:
|
||||
const char *m_name;
|
||||
LPDIRECTDRAWSURFACE m_surface;
|
||||
LPDIRECTDRAWPALETTE m_palette;
|
||||
LPDIRECT3DRMTEXTURE2 m_texture;
|
||||
MxU8 *m_data;
|
||||
const char* m_name;
|
||||
LPDIRECTDRAWSURFACE m_surface;
|
||||
LPDIRECTDRAWPALETTE m_palette;
|
||||
LPDIRECT3DRMTEXTURE2 m_texture;
|
||||
MxU8* m_data;
|
||||
};
|
||||
|
||||
struct GifMapEntry
|
||||
{
|
||||
struct GifMapEntry {
|
||||
public:
|
||||
GifMapEntry *m_right;
|
||||
GifMapEntry *m_parent;
|
||||
GifMapEntry *m_left;
|
||||
const char *m_key;
|
||||
GifData *m_value;
|
||||
GifMapEntry* m_right;
|
||||
GifMapEntry* m_parent;
|
||||
GifMapEntry* m_left;
|
||||
const char* m_key;
|
||||
GifData* m_value;
|
||||
};
|
||||
|
||||
class GifMap
|
||||
{
|
||||
class GifMap {
|
||||
public:
|
||||
GifMapEntry *FindNode(const char *&string);
|
||||
GifMapEntry* FindNode(const char*& string);
|
||||
|
||||
inline GifData *Get(const char *string) {
|
||||
GifData *ret = NULL;
|
||||
GifMapEntry *entry = FindNode(string);
|
||||
if (((m_unk4 == entry || strcmp(string, entry->m_key) > 0) ? m_unk4 : entry) != entry)
|
||||
ret = entry->m_value;
|
||||
return ret;
|
||||
}
|
||||
inline GifData* Get(const char* string)
|
||||
{
|
||||
GifData* ret = NULL;
|
||||
GifMapEntry* entry = FindNode(string);
|
||||
if (((m_unk4 == entry || strcmp(string, entry->m_key) > 0) ? m_unk4 : entry) != entry)
|
||||
ret = entry->m_value;
|
||||
return ret;
|
||||
}
|
||||
|
||||
undefined4 m_unk0;
|
||||
GifMapEntry *m_unk4;
|
||||
undefined4 m_unk0;
|
||||
GifMapEntry* m_unk4;
|
||||
};
|
||||
|
||||
// VTABLE 0x100d86d4
|
||||
class GifManagerBase
|
||||
{
|
||||
class GifManagerBase {
|
||||
public:
|
||||
// OFFSET: LEGO1 0x1005a310 STUB
|
||||
virtual ~GifManagerBase() {} // vtable+00
|
||||
// OFFSET: LEGO1 0x1005a310 STUB
|
||||
virtual ~GifManagerBase() {} // vtable+00
|
||||
|
||||
inline GifData *Get(const char *name) { return m_unk8.Get(name); }
|
||||
inline GifData* Get(const char* name) { return m_unk8.Get(name); }
|
||||
|
||||
protected:
|
||||
undefined4 m_unk0;
|
||||
undefined4 m_unk4;
|
||||
GifMap m_unk8;
|
||||
undefined4 m_unk0;
|
||||
undefined4 m_unk4;
|
||||
GifMap m_unk8;
|
||||
};
|
||||
|
||||
// VTABLE 0x100d86fc
|
||||
class GifManager : public GifManagerBase
|
||||
{
|
||||
class GifManager : public GifManagerBase {
|
||||
public:
|
||||
// OFFSET: LEGO1 0x1005a580 STUB
|
||||
virtual ~GifManager() {} // vtable+00
|
||||
// OFFSET: LEGO1 0x1005a580 STUB
|
||||
virtual ~GifManager() {} // vtable+00
|
||||
|
||||
protected:
|
||||
undefined m_unk[0x1c];
|
||||
undefined m_unk[0x1c];
|
||||
};
|
||||
|
||||
#endif // GIFMANAGER_H
|
||||
Reference in New Issue
Block a user