mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Enable NAND access for DS flashcards with SCFG access
This commit is contained in:
parent
7af7377efa
commit
854b16d8a1
@ -144,7 +144,7 @@ int main() {
|
|||||||
my_i2cWriteRegister(0x4A, 0x71, byteBak);
|
my_i2cWriteRegister(0x4A, 0x71, byteBak);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDSiMode() /*|| ((REG_SCFG_EXT & BIT(17)) && (REG_SCFG_EXT & BIT(18)))*/) {
|
if (isDSiMode() || ((REG_SCFG_EXT & BIT(17)) && (REG_SCFG_EXT & BIT(18)))) {
|
||||||
/*for (int i = 0; i < 8; i++) {
|
/*for (int i = 0; i < 8; i++) {
|
||||||
*(u8*)(0x2FFFD00+i) = *(u8*)(0x4004D07-i); // Get ConsoleID
|
*(u8*)(0x2FFFD00+i) = *(u8*)(0x4004D07-i); // Get ConsoleID
|
||||||
}*/
|
}*/
|
||||||
|
|||||||
@ -1,24 +1,3 @@
|
|||||||
/*-----------------------------------------------------------------
|
|
||||||
Copyright (C) 2005 - 2013
|
|
||||||
Michael "Chishm" Chisholm
|
|
||||||
Dave "WinterMute" Murphy
|
|
||||||
Claudio "sverx"
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License
|
|
||||||
as published by the Free Software Foundation; either version 2
|
|
||||||
of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
|
|
||||||
------------------------------------------------------------------*/
|
|
||||||
#include <nds.h>
|
#include <nds.h>
|
||||||
#include <nds/arm9/dldi.h>
|
#include <nds/arm9/dldi.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -255,7 +234,7 @@ int main(int argc, char **argv) {
|
|||||||
setVectorBase(0);
|
setVectorBase(0);
|
||||||
bios9iEnabled = true;
|
bios9iEnabled = true;
|
||||||
|
|
||||||
// nandMount(); // Returns corrupt data for some reason
|
nandMount(); // Returns corrupt data for some reason
|
||||||
}
|
}
|
||||||
} else if (isRegularDS && (io_dldi_data->ioInterface.features & FEATURE_SLOT_NDS)) {
|
} else if (isRegularDS && (io_dldi_data->ioInterface.features & FEATURE_SLOT_NDS)) {
|
||||||
ramdriveMount(false);
|
ramdriveMount(false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user