forked from chishm/nitrohax
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses new ndstool commands. No longer needs old python script to make a HiyaCFW or CIA friendly SRL. Note however latest commit of ndstool is required for icon to show up properly on DSi's menu. This is not an issue for 3DS however. This should now operate correctly on DSi as well once HiyaCFW/RocketLauncher is released. A template title.tmd file is provided.
- Loading branch information
1 parent
8796775
commit 702fd14
Showing
10 changed files
with
145 additions
and
591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include <nds.h> | ||
|
||
int PowerOnSlot() { | ||
REG_SCFG_MC = 0x04; // set state=1 | ||
while(REG_SCFG_MC&1); | ||
|
||
REG_SCFG_MC = 0x08; // set state=2 | ||
while(REG_SCFG_MC&1); | ||
|
||
REG_ROMCTRL = 0x20000000; // set ROMCTRL=20000000h | ||
return 0; | ||
} | ||
|
||
/* Unused for now | ||
int PowerOffSlot() { | ||
if(REG_SCFG_MC&1) return 1; | ||
REG_SCFG_MC = 0x0C; // set state=3 | ||
while(REG_SCFG_MC&1); | ||
return 0; | ||
} | ||
int TWL_ResetSlot1() { | ||
PowerOffSlot(); | ||
for (int i = 0; i < 30; i++) { swiWaitForVBlank(); } | ||
PowerOnSlot(); | ||
return 0; | ||
} | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef RESETSLOT_H | ||
#define RESETSLOT_H | ||
|
||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
int PowerOnSlot(void); | ||
int PowerOffSlot(void); | ||
int TWL_ResetSlot1(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
|
Oops, something went wrong.