Fix building ninja all_source

Former-commit-id: f14ca94607
This commit is contained in:
Henrique Gemignani Passos Lima
2022-10-10 12:46:24 +03:00
parent f6425fe3d8
commit f3ef565768
9 changed files with 20 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
#include "dolphin/os/OSReset.h"
volatile u8 DAT_800030e2 : 0x800030e2;
typedef struct Unk {
u8 pad[0x24];
@@ -17,6 +19,8 @@ typedef struct OSResetQueue {
OSResetFunctionInfo* last;
} OSResetQueue;
OSResetQueue ResetFunctionQueue;
void OSRegisterResetFunction(OSResetFunctionInfo* func) {
OSResetFunctionInfo* tmp;
OSResetFunctionInfo* iter;

View File

@@ -20,7 +20,7 @@ struct GXData {
extern GXData* __GXData;
static inline void write_bp_cmd(u32 cmd) {
GXWGFifo.uchar = GX_LOAD_BP_REG;
GXWGFifo.u8 = GX_LOAD_BP_REG;
GXWGFifo.u32 = cmd;
__GXData->cpCRreg = 0;
}

View File

@@ -75,7 +75,7 @@ unkptr gpDefaultFont;
unkptr lbl_805A8C50;
unkptr lbl_805A8C54;
bool COsContext::mProgressiveMode;
uint sARAMMemArray[2];
u32 sARAMMemArray[2];
float sInfiniteLoopTime;
#define GRAPHICS_FIFO_SIZE 0x60000

View File

@@ -1,11 +1,11 @@
#include "WorldFormat/CWorldLight.hpp"
#include "Kyoto/Streams/CInputStream.hpp"
#include <hacks.h>
// #include <hacks.h>
#include <rstl/math.hpp>
const CVector3f CWorldLight::kDefaultPosition = CVector3f(0.f, 0.f, 0.f);
FORCEPADDING(sizeof(CVector3f)) kPadding;
// FORCEPADDING(sizeof(CVector3f)) kPadding;
const CVector3f CWorldLight::kDefaultDirection = CVector3f(0.f, 1.f, 0.f);
CWorldLight::CWorldLight(CInputStream& in)
@@ -18,7 +18,7 @@ CWorldLight::CWorldLight(CInputStream& in)
, x30_(in.Get< float >())
, x34_castShadows(in.Get< bool >())
, x38_(in.Get< float >())
, x3c_falloff((EFalloffType)in.Get< uint >())
, x3c_falloff((EFallofType)in.Get< uint >())
, x40_(in.Get< float >()) {}
CLight CWorldLight::GetAsCGraphicsLight() const {