source/DSGM.c
// If you need anything more custom than this, you're going to have to write it yourself
If you need anything more custom than this, you're going to have to write it yourself
If you need anything more custom than this you ' re going to have to write it yourself
void DSGM_InitCustomGFX(bool topScreenDrawable, bool bottomScreenDrawable, bool main3D) {
	if(topScreenDrawable) videoSetMode(main3D ? MODE_3_3D : MODE_3_2D);
	else videoSetMode(main3D ? MODE_0_3D : MODE_0_2D);
	if(bottomScreenDrawable) videoSetModeSub(MODE_3_2D);
	else videoSetModeSub(MODE_0_2D);
	vramSetBankA(VRAM_A_MAIN_BG_0x06000000);
	if(!main3D) vramSetBankB(VRAM_B_MAIN_SPRITE_0x06400000);
	else vramSetBankB(VRAM_B_TEXTURE_SLOT1);
	vramSetBankC(VRAM_C_SUB_BG_0x06200000);
	vramSetBankD(VRAM_D_SUB_SPRITE);
	vramSetBankE(VRAM_E_BG_EXT_PALETTE);
	vramSetBankF(VRAM_F_SPRITE_EXT_PALETTE);
	if(!main3D) vramSetBankG(VRAM_G_LCD);
	else vramSetBankG(VRAM_G_MAIN_SPRITE_0x06400000);
	vramSetBankH(VRAM_H_SUB_BG_EXT_PALETTE);
	vramSetBankI(VRAM_I_SUB_SPRITE_EXT_PALETTE);
	bgExtPaletteEnable();
	bgExtPaletteEnableSub();
	oamInit(&oamMain, SpriteMapping_1D_128, true);
	oamInit(&oamSub, SpriteMapping_1D_128, true);
}
void DSGM_InitCustomGFX ( bool topScreenDrawable , bool bottomScreenDrawable , bool main3D ) { if ( topScreenDrawable ) videoSetMode ( main3D ? MODE_3_3D : MODE_3_2D ) ; else videoSetMode ( main3D ? MODE_0_3D : MODE_0_2D ) ; if ( bottomScreenDrawable ) videoSetModeSub ( MODE_3_2D ) ; else videoSetModeSub ( MODE_0_2D ) ; vramSetBankA ( VRAM_A_MAIN_BG_0x06000000 ) ; if ( ! main3D ) vramSetBankB ( VRAM_B_MAIN_SPRITE_0x06400000 ) ; else vramSetBankB ( VRAM_B_TEXTURE_SLOT1 ) ; vramSetBankC ( VRAM_C_SUB_BG_0x06200000 ) ; vramSetBankD ( VRAM_D_SUB_SPRITE ) ; vramSetBankE ( VRAM_E_BG_EXT_PALETTE ) ; vramSetBankF ( VRAM_F_SPRITE_EXT_PALETTE ) ; if ( ! main3D ) vramSetBankG ( VRAM_G_LCD ) ; else vramSetBankG ( VRAM_G_MAIN_SPRITE_0x06400000 ) ; vramSetBankH ( VRAM_H_SUB_BG_EXT_PALETTE ) ; vramSetBankI ( VRAM_I_SUB_SPRITE_EXT_PALETTE ) ; bgExtPaletteEnable ( ) ; bgExtPaletteEnableSub ( ) ; oamInit ( & oamMain , SpriteMapping_1D_128 , true ) ; oamInit ( & oamSub , SpriteMapping_1D_128 , true ) ; }
If you need anything more custom than this, you're going to have to write it yourself
If you need anything more custom than this you ' re going to have to write it yourself