Merge branch 'main' of github.com:pheenoh/dusk

This commit is contained in:
Pheenoh
2025-12-21 15:42:42 -07:00
10 changed files with 21 additions and 9 deletions
+2 -1
View File
@@ -1344,7 +1344,8 @@ source_group("dusk" FILES ${DUSK_FILES})
add_library(game SHARED ${DOLZEL_FILES} ${Z2AUDIOLIB_FILES} ${SSYSTEM_FILES} ${JSYSTEM_FILES} ${REL_FILES} ${DUSK_FILES})
target_compile_definitions(game PRIVATE TARGET_PC VERSION=0)
target_include_directories(game PRIVATE include)
# TODO: version handling for res includes
target_include_directories(game PRIVATE include assets/GZ2E01 src/PowerPC_EABI_Support/MSL/MSL_C++/MSL_Common/Include src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common_Embedded/Math/Include)
target_link_libraries(game PRIVATE aurora::core aurora::gx aurora::si aurora::vi aurora::pad)
add_executable(dusk src/dusk/main.cpp)
+1 -1
View File
@@ -2,7 +2,7 @@
#define J2DPRINT_H
#include "JSystem/J2DGraph/J2DTextBox.h"
#include "__va_arg.h"
#include <cstdarg>
class JUTFont;
class J2DPrint;
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef DEFINE_H
#define DEFINE_H
#include "types.h"
#include "dolphin/types.h"
#ifdef __cplusplus
extern "C" {
+2 -2
View File
@@ -4,7 +4,7 @@
#include "JSystem/JGadget/linklist.h"
#include "JSystem/JKernel/JKRDisposer.h"
#include "JSystem/JUtility/JUTFont.h"
#include "__va_arg.h"
#include <cstdarg>
/**
* @ingroup jsystem-jutility
@@ -142,7 +142,7 @@ public:
typedef JGadget::TLinkList<JUTConsole, -offsetof(JUTConsole, mListNode)> ConsoleList;
#else
// clangd does not support offsetof in template arguments.
typedef JGadget::TLinkList<JUTConsole, -sizeof(JKRDisposer)> ConsoleList;
typedef JGadget::TLinkList<JUTConsole, -static_cast<int>(sizeof(JKRDisposer))> ConsoleList;
#endif
private:
+1 -1
View File
@@ -2,7 +2,7 @@
#define JUTDIRECTPRINT_H
#include "JSystem/JUtility/TColor.h"
#include "__va_arg.h"
#include <cstdarg>
/**
* @ingroup jsystem-jutility
+1 -1
View File
@@ -3,7 +3,7 @@
#include "JSystem/JKernel/JKRThread.h"
#include "JSystem/JUtility/JUTGamePad.h"
#include "__va_arg.h"
#include <cstdarg>
#include <dolphin/gx.h>
#include <dolphin/os.h>
#include "global.h"
+4
View File
@@ -59,7 +59,11 @@ void GDSetChanCtrl(GXChannelID chan, u8 enable, GXColorSrc amb_src,
inline static u16 __GDLightID2Index(GXLightID id) {
u16 idx;
#ifdef __MWERKS__
idx = 0x1F - __cntlzw(id);
#else
idx = 0x1F - __builtin_clz(id);
#endif
if (idx > 7) {
idx = 0;
}
+6
View File
@@ -56,6 +56,12 @@ typedef unsigned int uint;
#endif
#endif
#if defined(__MWERKS__)
#define __REGISTER register
#else
#define __REGISTER
#endif
#ifndef DECL_WEAK
#if defined(__MWERKS__)
#define DECL_WEAK __declspec(weak)
+2 -1
View File
@@ -1,7 +1,8 @@
#ifndef M_DO_M_DO_PRINTF_H
#define M_DO_M_DO_PRINTF_H
#include <dolphin/os.h>
#include <cstdarg>
#include "dolphin/types.h"
void my_PutString(const char*);
void mDoPrintf_vprintf_Interrupt(char const*, va_list);
@@ -2,7 +2,7 @@
#define _MSL_COMMON_PRINTF_H
#include "ansi_files.h"
#include "__va_arg.h"
#include <cstdarg>
#ifdef __cplusplus
extern "C" {