mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-07 01:35:29 -04:00
Merge branch 'wip/linkfix2' into wip/linkfix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef C_API_CONTROLLER_PAD_
|
||||
#define C_API_CONTROLLER_PAD_
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
|
||||
struct interface_of_controller_pad {
|
||||
/* 0x00 */ f32 mMainStickPosX;
|
||||
@@ -35,4 +35,4 @@ struct interface_of_controller_pad {
|
||||
void cAPICPad_recalibrate(void);
|
||||
u32 cAPICPad_ANY_BUTTON(u32 param_0);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -3,19 +3,31 @@
|
||||
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
|
||||
#define ADD_ANGLE(x, y) ((x) += (s16)(y))
|
||||
#define SUB_ANGLE(x, y) ((x) -= (s16)(y))
|
||||
#define MULT_ANGLE(x, y) ((x) *= (s16)(y))
|
||||
#define ADD_VAR(x, y) ((x) += (y))
|
||||
#define SUB_VAR(x, y) ((x) -= (y))
|
||||
#define MULT_VAR(x, y) ((x) *= (y))
|
||||
|
||||
#define ADD_VAR_CAST(x, y, t) ((x) += (t)(y))
|
||||
#define SUB_VAR_CAST(x, y, t) ((x) -= (t)(y))
|
||||
#define MULT_VAR_CAST(x, y, t) ((x) *= (t)(y))
|
||||
|
||||
#define ADD_ANGLE(x, y) ADD_VAR_CAST(x, y, s16)
|
||||
#define SUB_ANGLE(x, y) SUB_VAR_CAST(x, y, s16)
|
||||
#define MULT_ANGLE(x, y) MULT_VAR_CAST(x, y, s16)
|
||||
|
||||
// There are some angles that weren't sign-extended until the shield version
|
||||
#if !PLATFORM_SHIELD
|
||||
#define ADD_ANGLE_2(x, y) ((x) += (y))
|
||||
#define SUB_ANGLE_2(x, y) ((x) -= (y))
|
||||
#define MULT_ANGLE_2(x, y) ((x) *= (y))
|
||||
#define ADD_ANGLE_2 ADD_VAR
|
||||
#define SUB_ANGLE_2 SUB_VAR
|
||||
#define MULT_ANGLE_2 MULT_VAR
|
||||
|
||||
#define ADD_S8_2 ADD_VAR
|
||||
#else
|
||||
#define ADD_ANGLE_2(x, y) ADD_ANGLE(x, y)
|
||||
#define SUB_ANGLE_2(x, y) SUB_ANGLE(x, y)
|
||||
#define MULT_ANGLE_2(x, y) MULT_ANGLE(x, y)
|
||||
#define ADD_ANGLE_2 ADD_ANGLE
|
||||
#define SUB_ANGLE_2 SUB_ANGLE
|
||||
#define MULT_ANGLE_2 MULT_ANGLE
|
||||
|
||||
#define ADD_S8_2(x, y) ADD_VAR_CAST(x, y, s8)
|
||||
#endif
|
||||
|
||||
#define DEG2S_CONSTANT (0x8000 / 180.0f)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_BG_S_CHK_H
|
||||
#define C_BG_S_CHK_H
|
||||
|
||||
#include "dolphin/mtx.h"
|
||||
#include <dolphin/mtx.h>
|
||||
#include "f_pc/f_pc_base.h"
|
||||
#include "SSystem/SComponent/c_bg_s_grp_pass_chk.h"
|
||||
#include "SSystem/SComponent/c_bg_s_poly_pass_chk.h"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_BG_S_POLY_INFO_H
|
||||
#define C_BG_S_POLY_INFO_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
#include "f_pc/f_pc_manager.h"
|
||||
|
||||
class cBgS_PolyInfo {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_BG_W_H
|
||||
#define C_BG_W_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
|
||||
class cBgW_BgId {
|
||||
private:
|
||||
|
||||
@@ -221,7 +221,7 @@ public:
|
||||
u32 MskRPrm(u32 mask) const { return mRPrm & mask; }
|
||||
void OnSPrmBit(u32 flag) { mSPrm |= flag; }
|
||||
void OffSPrmBit(u32 flag) { mSPrm &= ~flag; }
|
||||
u32 ChkSPrm(u32 prm) const { return MskSPrm(prm); }
|
||||
u32 ChkSPrm(u32 prm) const { return MskSPrm(prm) != 0; }
|
||||
|
||||
void Set(cCcD_SrcObjCommonBase const& src) { mSPrm = src.mSPrm; }
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_COUNTER_H
|
||||
#define C_COUNTER_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
|
||||
struct counter_class {
|
||||
u32 mCounter0;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define C_LIB_H_
|
||||
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
#include "dolphin/mtx.h"
|
||||
#include <dolphin/mtx.h>
|
||||
#include "SSystem/SComponent/c_math.h"
|
||||
|
||||
inline bool cLib_IsZero(f32 value) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define C_M3D_H_
|
||||
|
||||
#include <cmath>
|
||||
#include "dolphin/mtx.h"
|
||||
#include <dolphin/mtx.h>
|
||||
|
||||
class cM3dGAab;
|
||||
class cM3dGCps;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_M3D_G_CIR_H
|
||||
#define C_M3D_G_CIR_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
|
||||
class cM2dGCir {
|
||||
public:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_MALLOC_H
|
||||
#define C_MALLOC_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
|
||||
class JKRHeap;
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
#ifndef C_PHASE_H
|
||||
#define C_PHASE_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
|
||||
typedef int (*cPhs__Handler)(void*);
|
||||
|
||||
enum cPhs__Step {
|
||||
typedef int cPhs_Step;
|
||||
|
||||
enum {
|
||||
/* 0x0 */ cPhs_INIT_e,
|
||||
/* 0x1 */ cPhs_LOADING_e,
|
||||
/* 0x2 */ cPhs_NEXT_e,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_REQUEST_H
|
||||
#define C_REQUEST_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
|
||||
struct request_base_class {
|
||||
u8 flag0 : 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_SXYZ_H
|
||||
#define C_SXYZ_H
|
||||
|
||||
#include "dolphin/mtx.h"
|
||||
#include <dolphin/mtx.h>
|
||||
|
||||
struct SVec {
|
||||
s16 x, y, z;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define C_TAG_H
|
||||
|
||||
#include "SSystem/SComponent/c_node.h"
|
||||
#include "dolphin/types.h"
|
||||
#include <dolphin/types.h>
|
||||
|
||||
typedef struct node_list_class node_list_class;
|
||||
typedef struct node_lists_tree_class node_lists_tree_class;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef C_XYZ_H
|
||||
#define C_XYZ_H
|
||||
|
||||
#include "dolphin/mtx.h"
|
||||
#include <dolphin/mtx.h>
|
||||
#include <cmath>
|
||||
|
||||
#ifdef _MSVC_LANG
|
||||
|
||||
Reference in New Issue
Block a user