Skip to content

Commit 3c749a0

Browse files
committed
Fix compatibility with new libnds
1 parent d7c7120 commit 3c749a0

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/main.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ int main()
5151
consoleInit(nullptr, 0, BgType_Text4bpp, BgSize_T_256x256, 2, 0, false, true);
5252

5353
// Initialize maxmod without a soundbank
54-
mm_ds_system sys;
55-
sys.mod_count = 0;
56-
sys.samp_count = 0;
57-
sys.mem_bank = 0;
58-
sys.fifo_channel = FIFO_MAXMOD;
54+
mm_ds_system sys = {};
5955
mmInit(&sys);
6056

6157
// Initialize the game

src/menu.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ void menuInit()
185185
dmaCopy(song_listPal, BG_PALETTE_SUB, 3 * sizeof(uint16_t));
186186
bgSetRotateScale(bg, 0, 1 << 7, 1 << 8);
187187
bgUpdate();
188+
189+
// Set and enable the H-blank interrupt
188190
irqSet(IRQ_HBLANK, bgHBlank);
191+
REG_DISPSTAT |= BIT(4);
189192
}
190193

191194
void songList()

0 commit comments

Comments
 (0)