mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-15 04:14:34 +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
|
@ -4,17 +4,12 @@
|
|||
* Implements routines for drawing text with a fixed font directly to a framebuffer, used in displaying
|
||||
* the crash screen implemented by fault.c
|
||||
*/
|
||||
|
||||
// Include versions.h first and redefine FAULT_VERSION
|
||||
// This allows this file to compile even when versions.h uses FAULT_N64
|
||||
#include "versions.h"
|
||||
#undef FAULT_VERSION
|
||||
#define FAULT_VERSION FAULT_GC
|
||||
|
||||
#include "global.h"
|
||||
#include "fault.h"
|
||||
#include "terminal.h"
|
||||
|
||||
#if PLATFORM_GC
|
||||
|
||||
typedef struct FaultDrawer {
|
||||
/* 0x00 */ u16* fb;
|
||||
/* 0x04 */ u16 w;
|
||||
|
@ -348,3 +343,5 @@ void Fault_InitDrawer(void) {
|
|||
bcopy(&sFaultDrawerDefault, &sFaultDrawer, sizeof(FaultDrawer));
|
||||
sFaultDrawer.fb = (u16*)(PHYS_TO_K0(osMemSize) - sizeof(u16[SCREEN_HEIGHT][SCREEN_WIDTH]));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue