-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSA2ModLoader.h
More file actions
35 lines (29 loc) · 828 Bytes
/
SA2ModLoader.h
File metadata and controls
35 lines (29 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SA2MODLOADER_H
#define SA2MODLOADER_H
#if !defined(_M_IX86) && !defined(__i386__)
#error Mods must be built targeting 32-bit x86, change your settings.
#endif
#include <WTypes.h>
#include <cstdint>
#include "MemAccess.h"
#include "SA2ModInfo.h"
#include "SA2Enums.h"
#include "SA2Structs.h"
#include "SA2Variables.h"
#include "SA2Functions.h"
static inline void ResizeTextureList(NJS_TEXLIST* texlist, Uint32 count)
{
texlist->textures = new NJS_TEXNAME[count]{};
texlist->nbTexture = count;
}
static inline void ResizeTextureList(NJS_TEXLIST* texlist, NJS_TEXNAME* textures, Uint32 count)
{
texlist->textures = textures;
texlist->nbTexture = count;
}
template <Uint32 N>
static inline void ResizeTextureList(NJS_TEXLIST* texlist, NJS_TEXNAME(&textures)[N])
{
ResizeTextureList(texlist, textures, N);
}
#endif