fix includes

This commit is contained in:
Fexty12573 2024-07-23 19:53:30 +02:00
parent ff7d189af6
commit 71c1159c1b
4 changed files with 12 additions and 870 deletions

View File

@ -2,12 +2,17 @@
#define POKEPLATINUM_SPL_H
#include "nitro/types.h"
#include <nitro/gx/gxcommon.h>
#ifdef __cplusplus
extern "C" {
#endif
#include "struct_defs/struct_020147B8.h"
#define GX_RGB_R(RGB) (((RGB) >> GX_RGB_R_SHIFT) & 31)
#define GX_RGB_G(RGB) (((RGB) >> GX_RGB_G_SHIFT) & 31)
#define GX_RGB_B(RGB) (((RGB) >> GX_RGB_B_SHIFT) & 31)
typedef void * (* UnkFuncPtr_0209CD00)(u32);
typedef union {

View File

@ -13,8 +13,8 @@ libspl_public_includes = include_directories('include')
libspl = static_library('spl',
sources: libspl_srcs,
c_args: c_args,
nasm_args: asm_args,
include_directories: [public_includes, libspl_public_includes],
dependencies: [ nitrosdk_dep, nitrosystem_dep ],
pic: false
)

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,7 @@
#include "spl.h"
#include <nitro/fx/fx.h>
#include <nitro/fx/fx_const.h>
#include "spl.h"
void sub_020A19F0(SPLParticle *ptcl, UnkSPLStruct4 *res, int lifeRate)
{
@ -43,10 +44,6 @@ void sub_020A1AF8(SPLParticle *ptcl, UnkSPLStruct4 *res, int lifeRate)
ptcl->unk_2E.unk_00_5 = x * (255 - ((int)(alphaAnim->unk_02.unk_00_0 * rng_next(0x18)) >> 8)) >> 8;
}
#define GX_RGB_R(RGB) (((RGB) >> GX_RGB_R_SHIFT) & 31)
#define GX_RGB_G(RGB) (((RGB) >> GX_RGB_G_SHIFT) & 31)
#define GX_RGB_B(RGB) (((RGB) >> GX_RGB_B_SHIFT) & 31)
void sub_020A1BD4(SPLParticle *ptcl, UnkSPLStruct4 *res, int lifeRate)
{
UnkSPLStruct9 *resBase;