mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
migrate some stuff to os
This commit is contained in:
parent
e5e89e86cf
commit
7cf7b16795
@ -1,10 +0,0 @@
|
||||
#include "common.h"
|
||||
|
||||
typedef struct {
|
||||
char unk_0[0xC];
|
||||
void* unk_C;
|
||||
} NUScTask;
|
||||
|
||||
void nuGfxSwapCfb(NUScTask* task) {
|
||||
osViSwapBuffer(task->unk_C);
|
||||
}
|
5
src/os/code_3b750_len_20.c
Normal file
5
src/os/code_3b750_len_20.c
Normal file
@ -0,0 +1,5 @@
|
||||
#include "nu/nusys.h"
|
||||
|
||||
void nuGfxSwapCfb(void* task) {
|
||||
osViSwapBuffer(((NUScTask*)task)->framebuffer);
|
||||
}
|
@ -22,7 +22,7 @@ void guOrthoF(float mf[4][4], float l, float r, float b, float t,
|
||||
}
|
||||
}
|
||||
#else
|
||||
INCLUDE_ASM(void, "guOrtho", guOrthoF, float mf[4][4], float l, float r, float b, float t, float n, float f,
|
||||
INCLUDE_ASM(void, "os/guOrtho", guOrthoF, float mf[4][4], float l, float r, float b, float t, float n, float f,
|
||||
float scale);
|
||||
#endif
|
||||
|
||||
@ -36,6 +36,6 @@ void guOrtho(Mtx* m, float l, float r, float b, float t,
|
||||
guMtxF2L(mf, m);
|
||||
}
|
||||
#else
|
||||
INCLUDE_ASM(void, "guOrtho", guOrtho, Mtx* m, float l, float r, float b, float t,
|
||||
INCLUDE_ASM(void, "os/guOrtho", guOrtho, Mtx* m, float l, float r, float b, float t,
|
||||
float n, float f, float scale);
|
||||
#endif
|
@ -88,7 +88,7 @@ segments:
|
||||
- [0x3b390, c, os/code_3b390_len_110]
|
||||
- [0x3b4a0, c, os/code_3b4a0_len_270]
|
||||
- [0x3b710, c, os/code_3b710_len_40]
|
||||
- [0x3b750, c, code_3b750_len_20]
|
||||
- [0x3b750, c, os/code_3b750_len_20]
|
||||
- [0x3b770, c, os/code_3b770_len_80]
|
||||
- [0x3b7f0, c, os/code_3b7f0_len_120]
|
||||
- [0x3b910, c, os/code_3b910_len_410]
|
||||
@ -113,7 +113,7 @@ segments:
|
||||
- [0x3d330, c, os/code_3d330_len_990]
|
||||
- [0x3dcc0, c, os/code_3dcc0_len_a60]
|
||||
- [0x3e720, c, os/code_3e720_len_5f0]
|
||||
- [0x3ed10, c, guOrtho]
|
||||
- [0x3ed10, c, os/guOrtho]
|
||||
- [0x3ef90, c, os/code_3ef90_len_600]
|
||||
- [0x3f310, c, os/code_3f310_len_3c0]
|
||||
- [0x3f6d0, c, os/code_3f6d0_len_320]
|
||||
|
Loading…
Reference in New Issue
Block a user