mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-08 20:24:47 -04:00
Merge branch 'main' of github.com:pheenoh/dusk
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define J2DPRINT_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DTextBox.h"
|
||||
#include "__va_arg.h"
|
||||
#include <cstdarg>
|
||||
|
||||
class JUTFont;
|
||||
class J2DPrint;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef DEFINE_H
|
||||
#define DEFINE_H
|
||||
|
||||
#include "types.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define JUTDIRECTPRINT_H
|
||||
|
||||
#include "JSystem/JUtility/TColor.h"
|
||||
#include "__va_arg.h"
|
||||
#include <cstdarg>
|
||||
|
||||
/**
|
||||
* @ingroup jsystem-jutility
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user