Initial commit

This commit is contained in:
Gericom
2025-11-22 17:21:45 +01:00
commit 5d6f67c612
517 changed files with 63025 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#include "common.h"
#include <nds/arm9/cache.h>
#include "OamManager.h"
void OamManager::Apply(vu16* dst)
{
DC_FlushRange(&_oamTable, sizeof(gfx_oam_table_t));
dma_ntrCopy32(3, &_oamTable, dst, sizeof(gfx_oam_table_t));
}
void OamManager::Clear()
{
memset(&_oamTable, 0x2, sizeof(gfx_oam_table_t));
_oamPtr = &_oamTable.objs[128];
_mtxIdx = 0;
}