Linux build fixes
This commit is contained in:
parent
236ce75a28
commit
525213367c
19 changed files with 62 additions and 33 deletions
|
|
@ -1367,7 +1367,6 @@ void C_MTXMultVecArray(const Mtx m, const Vec* srcBase, Vec* dstBase, u32 count)
|
|||
|
||||
void C_MTXROMultVecArray(const ROMtx m, const Vec *srcBase, Vec *dstBase, u32 count)
|
||||
{
|
||||
u32 i;
|
||||
for (u32 i = 0; i < count; ++i) {
|
||||
Vec* src = &srcBase[i];
|
||||
Vec* dst = &dstBase[i];
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ void OSStopStopwatch(struct OSStopwatch *sw)
|
|||
}
|
||||
}
|
||||
|
||||
long long OSCheckStopwatch(struct OSStopwatch *sw)
|
||||
OSTime OSCheckStopwatch(OSStopwatch *sw)
|
||||
{
|
||||
long long currTotal;
|
||||
|
||||
|
|
|
|||
|
|
@ -265,7 +265,11 @@ void *HuAR_ARAMtoMRAMNum(u32 src, s32 num) {
|
|||
|
||||
block = HuARInfoGet(src);
|
||||
if (HuDataReadChk(block->dir << 16) >= 0) {
|
||||
#ifdef NON_MATCHING
|
||||
return 0;
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
size = HuARSizeGet(src);
|
||||
dst = HuMemDirectMallocNum(HEAP_DVD, size, num);
|
||||
|
|
|
|||
|
|
@ -95,6 +95,8 @@ typedef struct {
|
|||
float unk04;
|
||||
} BallTakeCoinWork;
|
||||
|
||||
static BOOL CheckBallCoinDone(void);
|
||||
static void TakeBallStar(void);
|
||||
static void ComSetupStealPlayer(s32 arg0);
|
||||
static void ComSetStealPlayerInput(s32 arg0, s32 arg1);
|
||||
static void ExecCoinSteal(void);
|
||||
|
|
@ -131,8 +133,10 @@ static void BallBooAttack(omObjData *arg0, BallBooWork *arg1);
|
|||
static void BallBooFlash(omObjData *arg0, BallBooWork *arg1);
|
||||
static void TakeBallCoin(void);
|
||||
static void ExecTakeBallCoin(omObjData *arg0);
|
||||
static void ExecTakeBallStar(omObjData *arg0);
|
||||
static void TakeBallCoinPosSet(BallTakeCoinData *arg0, Vec *arg1);
|
||||
static void UpdatePlayerCoins(void);
|
||||
static BOOL CheckTakeBallStarDone(void);
|
||||
|
||||
s8 lbl_801D41E2;
|
||||
static s8 stealTarget;
|
||||
|
|
|
|||
|
|
@ -729,9 +729,11 @@ s32 BoardPlayerSizeGet(s32 idx)
|
|||
PlayerState *player;
|
||||
|
||||
player = BoardPlayerGet(idx);
|
||||
#ifndef NON_MATCHING
|
||||
if (!player) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
return player->size;
|
||||
}
|
||||
|
||||
|
|
@ -2220,9 +2222,11 @@ s32 BoardPlayerAutoSizeGet(s32 arg0)
|
|||
PlayerState *player;
|
||||
|
||||
player = BoardPlayerGet(arg0);
|
||||
#ifndef NON_MATCHING
|
||||
if (!player) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
return player->auto_size;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -685,13 +685,14 @@ static void UpdateCharAnim(s16 character, s16 arg1, s16 arg2, u8 arg3, s16 arg4,
|
|||
|
||||
static s32 PlayCharVoice(s16 character, s16 arg1, u8 arg2)
|
||||
{
|
||||
UnkCharInstanceStruct *temp_r31;
|
||||
ModelData *temp_r29;
|
||||
|
||||
temp_r31 = &charInstance[character];
|
||||
temp_r29 = &Hu3DData[temp_r31->unk00];
|
||||
UnkCharInstanceStruct *temp_r31 = &charInstance[character];
|
||||
ModelData *temp_r29 = &Hu3DData[temp_r31->unk00];
|
||||
if (arg2 & 1) {
|
||||
#ifdef NON_MATCHING
|
||||
return 0;
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
if (temp_r31->unkAC & 8) {
|
||||
return HuAudCharVoicePlayPos(character, arg1, &temp_r29->pos);
|
||||
|
|
@ -1973,7 +1974,11 @@ static s32 PlayStepFX(s16 character, s16 arg1, u8 arg2)
|
|||
temp_r31 = &charInstance[character];
|
||||
var_r28 = &Hu3DData[temp_r31->unk00];
|
||||
if (arg2 & 1) {
|
||||
#ifdef NON_MATCHING
|
||||
return 0;
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
if (temp_r31->unkB0 == 4) {
|
||||
arg1 = 0x109;
|
||||
|
|
|
|||
|
|
@ -1828,7 +1828,11 @@ static s32 LoadTexture(ModelData *arg0, HsfBitmap *arg1, HsfAttribute *arg2, s16
|
|||
|
||||
if (arg1 == 0) {
|
||||
OSReport("Error: No Texture\n");
|
||||
#ifdef NON_MATCHING
|
||||
return 0;
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
var_r27 = arg1->sizeX;
|
||||
var_r26 = arg1->sizeY;
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ void omDestroyObjMan(void)
|
|||
OSReport("objman>Destory ObjMan\n");
|
||||
}
|
||||
|
||||
omObjData *omAddObjEx(Process *objman_process, s16 prio, u16 mdlcnt, u16 mtncnt, s16 group, void (*func)(omObjData *))
|
||||
omObjData *omAddObjEx(Process *objman_process, s16 prio, u16 mdlcnt, u16 mtncnt, s16 group, omObjFunc func)
|
||||
{
|
||||
s32 i;
|
||||
omObjData *object;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,16 @@
|
|||
#include "game/dvd.h"
|
||||
#include "game/object.h"
|
||||
|
||||
#ifdef TARGET_PC
|
||||
|
||||
#ifdef _WIN32
|
||||
#define OVL_DEFINE(name, path) { path ".dll", 0 },
|
||||
#else
|
||||
#define OVL_DEFINE(name, path) { path ".so", 0 },
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define OVL_DEFINE(name, path) { "dll/" path ".rel", 0 },
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <dolphin.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#if __APPLE__
|
||||
|
|
@ -36,7 +37,7 @@ static u64 GetGCTicks()
|
|||
struct timespec tp;
|
||||
clock_gettime(CLOCK_MONOTONIC, &tp);
|
||||
|
||||
return u64((tp.tv_sec * 1000000000ull) + tp.tv_nsec) * GetGCTicksPerSec() / 1000000000ull;
|
||||
return ((tp.tv_sec * 1000000000ull) + tp.tv_nsec) * OS_CORE_CLOCK / 1000000000ull;
|
||||
#elif _WIN32
|
||||
LARGE_INTEGER perf;
|
||||
QueryPerformanceCounter(&perf);
|
||||
|
|
|
|||
|
|
@ -226,7 +226,6 @@ void HuAudFXListnerKill(void) {
|
|||
|
||||
void HuAudFXPauseAll(s32 pause) {
|
||||
// msmSePauseAll(pause, 0x64);
|
||||
return 12;
|
||||
}
|
||||
|
||||
s32 HuAudFXStatusGet(int seNo) {
|
||||
|
|
|
|||
|
|
@ -751,6 +751,3 @@ s32 HuTHPTotalFrameGet(void)
|
|||
void HuTHPSetVolume(s32 left, s32 right)
|
||||
{
|
||||
}
|
||||
|
||||
// TODO remove
|
||||
u8 fadeStat = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue