Skip to content

Commit eea0a0a

Browse files
committed
Most DSi-Enhanced games now supported!
1 parent 7b02503 commit eea0a0a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

bootloader/source/hook.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,25 +266,26 @@ int hookNdsRetail (const tNDSHeader* ndsHeader, aFile file, const u32* cheatData
266266
if(!hookLocation){
267267

268268
if(*(u32*)(0x27FF03C) == 0x00022B40){
269-
// TODO
269+
hookLocation = 0x238DED8;
270270
}else if(*(u32*)(0x27FF03C) == 0x00022BCC){
271-
// TODO
271+
hookLocation = 0x238DF60;
272272
}else if(*(u32*)(0x27FF03C) == 0x00028F84){
273273
hookLocation = 0x2391918;
274274
}else if(*(u32*)(0x27FF03C) == 0x0002909C){
275-
// TODO
276-
}else if(*(u32*)(0x27FF03C) == 0x0002914C){
277-
// TODO
278-
}else if(*(u32*)(0x27FF03C) == 0x00029164){
275+
hookLocation = 0x2391A30;
276+
}else if((*(u32*)(0x27FF03C) == 0x0002914C)
277+
||(*(u32*)(0x27FF03C) == 0x00029164)){
279278
hookLocation = 0x2391ADC;
279+
}else if(*(u32*)(0x27FF03C) == 0x00029EE8){
280+
hookLocation = 0x2391F70;
280281
}else if(*(u32*)(0x27FF03C) == 0x0002A2EC){
281-
// TODO
282+
hookLocation = 0x23921BC;
282283
}else if(*(u32*)(0x27FF03C) == 0x0002A318){
283-
// TODO
284+
hookLocation = 0x23921D8;
284285
}else if(*(u32*)(0x27FF03C) == 0x0002AF18){
285286
hookLocation = 0x239227C;
286287
}else if(*(u32*)(0x27FF03C) == 0x0002C5B4){
287-
// TODO
288+
hookLocation = 0x2392E74;
288289
}
289290

290291
}

0 commit comments

Comments
 (0)