mirror of
https://github.com/ApacheThunder/NTR_Launcher.git
synced 2025-06-19 03:25:38 -04:00
Add R4Ultra NDS file...
* R4 Ultra Bootloader added to default stage2 NDS files.
This commit is contained in:
parent
54734ae9ee
commit
5a337c05bd
BIN
CartFiles/NTR_Launcher/R4DS_Ultra.nds
Normal file
BIN
CartFiles/NTR_Launcher/R4DS_Ultra.nds
Normal file
Binary file not shown.
@ -183,7 +183,21 @@ static void NDSTouchscreenMode() {
|
||||
|
||||
void VcountHandler() { inputGetAndSend(); }
|
||||
|
||||
void VblankHandler(void) { }
|
||||
void VblankHandler(void) {
|
||||
if (!touchScreenCheck) {
|
||||
if(fifoCheckValue32(FIFO_USER_01)) {
|
||||
if (cdcReadReg(CDC_SOUND, 0x22) == 0xF0) {
|
||||
// Switch touch mode to NTR
|
||||
*(u16*)0x4004700 = 0x800F;
|
||||
NDSTouchscreenMode();
|
||||
*(u16*)0x4000500 = 0x807F;
|
||||
}
|
||||
REG_GPIO_WIFI |= BIT(8); // Old NDS-Wifi mode
|
||||
fifoSendValue32(FIFO_USER_02, 1);
|
||||
touchScreenCheck = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
// read User Settings from firmware
|
||||
@ -209,21 +223,6 @@ int main(void) {
|
||||
i2cWriteRegister(0x4A, 0x12, 0x00); // Press power-button for auto-reset
|
||||
i2cWriteRegister(0x4A, 0x70, 0x01); // Bootflag = Warmboot/SkipHealthSafety
|
||||
|
||||
while (1) {
|
||||
if (!touchScreenCheck) {
|
||||
if(fifoCheckValue32(FIFO_USER_01)) {
|
||||
if (cdcReadReg(CDC_SOUND, 0x22) == 0xF0) {
|
||||
// Switch touch mode to NTR
|
||||
*(u16*)0x4004700 = 0x800F;
|
||||
NDSTouchscreenMode();
|
||||
*(u16*)0x4000500 = 0x807F;
|
||||
}
|
||||
REG_GPIO_WIFI |= BIT(8); // Old NDS-Wifi mode
|
||||
fifoSendValue32(FIFO_USER_02, 1);
|
||||
touchScreenCheck = true;
|
||||
}
|
||||
}
|
||||
swiWaitForVBlank();
|
||||
}
|
||||
while (1)swiWaitForVBlank();
|
||||
}
|
||||
|
||||
|
@ -57,6 +57,7 @@ static const char* NitroSourceFileList[7] = {
|
||||
"nitro:/NTR_Launcher/EZFlashV.nds",
|
||||
"nitro:/NTR_Launcher/R4iGold_Launcher.nds",
|
||||
"nitro:/NTR_Launcher/R4iSDHC_Demon.nds",
|
||||
"nitro:/NTR_Launcher/R4DS_Ultra.nds",
|
||||
"nitro:/NTR_Launcher/TTDS.nds"
|
||||
};
|
||||
|
||||
@ -67,6 +68,7 @@ static const char* NitroDestFileList[7] = {
|
||||
"sd:/NTR_Launcher/EZFlashV.nds",
|
||||
"sd:/NTR_Launcher/R4iGold_Launcher.nds",
|
||||
"sd:/NTR_Launcher/R4iSDHC_Demon.nds",
|
||||
"sd:/NTR_Launcher/R4DS_Ultra.nds",
|
||||
"sd:/NTR_Launcher/TTDS.nds"
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user