mirror of
https://github.com/zeldaret/tp
synced 2026-08-22 06:44:53 -04:00
Debug version now builds OK and all_source compiles (#2343)
* Fix missing arg to JUT_ASSERT * Fix some MWCC version diff errors * Compile m_Do_ext, d_demo, actor_mng * Add VSCode task to quickly switch between versions * Unlink magLift for debug * Update the hash of the debug dol The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment. The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol. The DOL now builds OK. * Fix all debug REL dtor splits All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds. * Add genMessage declarations to all HIO subclasses * Fixing more compilation errors * m_Do_mtx 100% on debug Cannot be linked due to weak function name mangling? * Improve various matches * Fix all remaining compilation errors * Fix new compilation errors from main * Fix retail regression * Link f_pc_profile_lst
This commit is contained in:
@@ -28,7 +28,7 @@ void GXBegin(GXPrimitive type, GXVtxFmt vtxfmt, u16 nverts);
|
||||
static inline void GXEnd(void) {
|
||||
#if DEBUG
|
||||
extern GXBool __GXinBegin;
|
||||
extern void OSPanic(char* file, int line, char* msg, ...);
|
||||
extern void OSPanic(const char* file, int line, const char* msg, ...);
|
||||
if (!__GXinBegin) {
|
||||
OSPanic(__FILE__, 118, "GXEnd: called without a GXBegin");
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ __declspec(weak) void OSVReport(const char* format, va_list list);
|
||||
#define OS_REPORT(...) OSReport(__VA_ARGS__)
|
||||
#define OS_WARNING(...) OSReport_Warning(__VA_ARGS__)
|
||||
#define OS_REPORT_ERROR(...) OSReport_Error(__VA_ARGS__)
|
||||
#define OS_PANIC(msg) OSPanic(__FILE__, __LINE__, msg)
|
||||
#define OS_PANIC(line, msg) OSPanic(__FILE__, line, msg)
|
||||
#else
|
||||
#define OS_REPORT(...)
|
||||
#define OS_WARNING(...)
|
||||
|
||||
@@ -29,6 +29,8 @@ typedef char *Ptr;
|
||||
|
||||
typedef int BOOL;
|
||||
|
||||
typedef unsigned int uint;
|
||||
|
||||
#define FALSE 0
|
||||
#define TRUE 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user