mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-04 15:04:31 +00:00
[ntsc-1.2] Match __osMalloc.c and code_800FC620.c (new/delete) (#2106)
* Match __osMalloc * Match src/code/code_800FC620.c (new/delete) * Wrap versions-specific files in ifdefs to fix compilation * Fix bss * Remove {FAULT,RAND,OSMALLOC}_VERSION in favor of PLATFORM_N64 * Fix __osMalloc data splits, add unused strings * __osMalloc.h -> osMalloc.h * Fix merge
This commit is contained in:
parent
af24970d89
commit
c6d7cc7697
24 changed files with 682 additions and 159 deletions
|
@ -1,14 +1,11 @@
|
|||
// Include versions.h first and redefine FAULT_VERSION
|
||||
// This allows this file to compile even when versions.h uses FAULT_GC
|
||||
#include "versions.h"
|
||||
#undef FAULT_VERSION
|
||||
#define FAULT_VERSION FAULT_N64
|
||||
|
||||
#include "global.h"
|
||||
#include "fault.h"
|
||||
#include "osMalloc.h"
|
||||
#include "stack.h"
|
||||
#include "terminal.h"
|
||||
|
||||
#if PLATFORM_N64
|
||||
|
||||
typedef struct FaultMgr {
|
||||
OSThread thread;
|
||||
char unk_1B0[0x400];
|
||||
|
@ -846,3 +843,5 @@ void Fault_AddHungupAndCrash(const char* file, int line) {
|
|||
sprintf(msg, "HungUp %s:%d", file, line);
|
||||
Fault_AddHungupAndCrashImpl(msg, NULL);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue