mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 00:01:15 +00:00
Add stlcompat.h so this can still be built on modern compilers, fix affected type size asserts.
This commit is contained in:
parent
f0ddc605ce
commit
6d533f3977
@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
#include "decomp.h"
|
#include "decomp.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(MxList<unsigned int>, 0xc);
|
// Can't use DECOMP_SIZE_ASSERT due to STL type size changes.
|
||||||
|
//DECOMP_SIZE_ASSERT(MxList<unsigned int>, 0xc);
|
||||||
|
|||||||
@ -1,12 +1,11 @@
|
|||||||
#ifndef MXLIST_H
|
#ifndef MXLIST_H
|
||||||
#define MXLIST_H
|
#define MXLIST_H
|
||||||
|
|
||||||
|
#include "stlcompat.h"
|
||||||
#ifndef ISLE_COMPAT
|
#ifndef ISLE_COMPAT
|
||||||
#include <STL.H>
|
|
||||||
#define LIST_T List<T>
|
#define LIST_T List<T>
|
||||||
#else
|
#else
|
||||||
#include <list>
|
#define LIST_T list<T>
|
||||||
#define LIST_T std::list<T>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@ -7,9 +7,11 @@
|
|||||||
#include "mxtypes.h"
|
#include "mxtypes.h"
|
||||||
|
|
||||||
#include "decomp.h"
|
#include "decomp.h"
|
||||||
|
#include "stlcompat.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(MxNotification, 0x8);
|
DECOMP_SIZE_ASSERT(MxNotification, 0x8);
|
||||||
DECOMP_SIZE_ASSERT(MxNotificationManager, 0x40);
|
// Can't use DECOMP_SIZE_ASSERT due to STL type size changes.
|
||||||
|
//DECOMP_SIZE_ASSERT(MxNotificationManager, 0x40);
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100ac220
|
// OFFSET: LEGO1 0x100ac220
|
||||||
MxNotification::MxNotification(MxCore *p_target, MxParam *p_param)
|
MxNotification::MxNotification(MxCore *p_target, MxParam *p_param)
|
||||||
|
|||||||
11
LEGO1/stlcompat.h
Normal file
11
LEGO1/stlcompat.h
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#ifndef STLCOMPAT_H
|
||||||
|
#define STLCOMPAT_H
|
||||||
|
|
||||||
|
#ifndef ISLE_COMPAT
|
||||||
|
#include <STL.H>
|
||||||
|
#else
|
||||||
|
#include <list>
|
||||||
|
using namespace std;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // STLCOMPAT_H
|
||||||
Loading…
Reference in New Issue
Block a user