get dusk past compilation and into linking

This commit is contained in:
kipcode66
2026-01-15 19:24:39 -05:00
parent dd67314902
commit b1e20051ce
17 changed files with 127 additions and 5 deletions
+3
View File
@@ -6,6 +6,9 @@
#include "JSystem/J2DGraph/J2DScreen.h"
#include "JSystem/JSupport/JSURandomInputStream.h"
#include "JSystem/JUtility/JUTResource.h"
#ifndef __MWERKS__
#include "dusk/math.h"
#endif
J2DPane::J2DPane() : mBounds(), mGlobalBounds(), mClipRect(), mPaneTree(this) {
mTransform = NULL;
+4
View File
@@ -6,7 +6,11 @@
#include "JSystem/J2DGraph/J2DTevs.h"
#include "JSystem/J2DGraph/J2DMaterial.h"
#ifdef __MWERKS__
#include <cmath>
#else
#include "dusk/math.h"
#endif
#include "dolphin/gx.h"
void J2DTexMtx::load(u32 mtxIdx) {
+3
View File
@@ -9,6 +9,9 @@
#include "JSystem/JAudio2/JASMutex.h"
#include "JSystem/JKernel/JKRHeap.h"
#include <cstdio>
#ifndef __MWERKS__
#include <cstdarg>
#endif
static OSMutex sMutex;
+3
View File
@@ -1,6 +1,9 @@
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/JKernel/JKRAssertHeap.h"
#ifndef __MWERKS__
#include <new>
#endif
JKRAssertHeap::JKRAssertHeap(void* data, u32 size, JKRHeap* parent, bool errorFlag)
: JKRHeap(data, size, parent, errorFlag) {}
+3
View File
@@ -5,6 +5,9 @@
#include "JSystem/JKernel/JKRHeap.h"
#include "JSystem/JUtility/JUTVideo.h"
#include <cstdio>
#ifndef __MWERKS__
#include <cstdarg>
#endif
JUTDbPrint::JUTDbPrint(JUTFont* pFont, JKRHeap* pHeap) {
mFont = pFont;
@@ -2,6 +2,7 @@
#define MSL_CMATH_H_
#include <float.h>
//#include <cmath>
#define NAN (*(float*) __float_nan)
#define HUGE_VALF (*(float*) __float_huge)
+4
View File
@@ -14,6 +14,10 @@
#include "dolphin/gf/GFLight.h"
#include "m_Do/m_Do_lib.h"
#ifndef __MWERKS__
#include "dusk/math.h"
#endif
static BOOL daMirror_c_createHeap(fopAc_ac_c* i_this) {
return ((daMirror_c*)i_this)->createHeap();
}
+4
View File
@@ -12,6 +12,10 @@
#include "d/d_cc_d.h"
#include "d/d_cc_uty.h"
#ifndef __MWERKS__
#include "dusk/math.h"
#endif
#if DEBUG
class daObjLv4Chan_HIO_c : public mDoHIO_entry_c {
public:
+4
View File
@@ -25,6 +25,10 @@
#include "d/actor/d_a_player.h"
#include "SSystem/SComponent/c_math.h"
#ifndef __MWERKS__
#include "dusk/math.h"
#endif
#if DEBUG
//#pragma nosyminline on
#endif
+5
View File
@@ -16,6 +16,11 @@
#include "m_Do/m_Do_graphic.h"
#include <cstdio>
#ifndef __MWERKS__
#include <string>
#include "dusk/extras.h"
#endif
dRes_info_c::dRes_info_c() {
mCount = 0;
mDMCommand = NULL;
+3
View File
@@ -11,6 +11,9 @@
#include "d/d_s_room.h"
#include "m_Do/m_Do_Reset.h"
#include <cstdio>
#ifndef __MWERKS__
#include "dusk/extras.h"
#endif
static int dScnRoom_Draw(room_of_scene_class* i_this) {
return 1;
+45
View File
@@ -0,0 +1,45 @@
#include "dusk/extras.h"
#include <ctype.h>
int stricmp(const char* str1, const char* str2) {
char a_var;
char b_var;
do {
b_var = tolower(*str1++);
a_var = tolower(*str2++);
if (b_var < a_var) {
return -1;
}
if (b_var > a_var) {
return 1;
}
} while (b_var != 0);
return 0;
}
int strnicmp(const char* str1, const char* str2, int n) {
int i;
char c1, c2;
for (i = 0; i < n; i++) {
c1 = tolower(*str1++);
c2 = tolower(*str2++);
if (c1 < c2) {
return -1;
}
if (c1 > c2) {
return 1;
}
if (c1 == '\0') {
return 0;
}
}
return 0;
}