Skip to content

Commit

Permalink
Create luma/sysmodules before copying over widescreen TwlBg
Browse files Browse the repository at this point in the history
Fixes #714
  • Loading branch information
RocketRobz committed Aug 11, 2019
1 parent c31df67 commit c3f30de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quickmenu/arm9/source/main.cpp
Expand Up @@ -754,6 +754,8 @@ TWL_CODE void SetWidescreen(const char *filename) {
fcopy(wideBinPath, "/_nds/nds-bootstrap/wideCheatData.bin");

// Prepare for reboot into 16:10 TWL_FIRM
mkdir("sd:/luma", 0777);
mkdir("sd:/luma/sysmodules", 0777);
rename("sd:/luma/sysmodules/TwlBg.cxi", "sd:/luma/sysmodules/TwlBg_bak.cxi");
rename("sd:/_nds/TWiLightMenu/TwlBg/Widescreen.cxi", "sd:/luma/sysmodules/TwlBg.cxi");

Expand Down
2 changes: 2 additions & 0 deletions romsel_aktheme/arm9/source/windows/mainwnd.cpp
Expand Up @@ -561,6 +561,8 @@ void bootWidescreen(const char *filename)
fcopy(wideBinPath, "/_nds/nds-bootstrap/wideCheatData.bin");

// Prepare for reboot into 16:10 TWL_FIRM
mkdir("sd:/luma", 0777);
mkdir("sd:/luma/sysmodules", 0777);
rename("sd:/luma/sysmodules/TwlBg.cxi", "sd:/luma/sysmodules/TwlBg_bak.cxi");
rename("sd:/_nds/TWiLightMenu/TwlBg/Widescreen.cxi", "sd:/luma/sysmodules/TwlBg.cxi");

Expand Down
2 changes: 2 additions & 0 deletions romsel_dsimenutheme/arm9/source/main.cpp
Expand Up @@ -538,6 +538,8 @@ TWL_CODE void SetWidescreen(const char *filename) {
fcopy(wideBinPath, "/_nds/nds-bootstrap/wideCheatData.bin");

// Prepare for reboot into 16:10 TWL_FIRM
mkdir("sd:/luma", 0777);
mkdir("sd:/luma/sysmodules", 0777);
rename("sd:/luma/sysmodules/TwlBg.cxi", "sd:/luma/sysmodules/TwlBg_bak.cxi");
rename("sd:/_nds/TWiLightMenu/TwlBg/Widescreen.cxi", "sd:/luma/sysmodules/TwlBg.cxi");

Expand Down
2 changes: 2 additions & 0 deletions romsel_r4theme/arm9/source/main.cpp
Expand Up @@ -778,6 +778,8 @@ TWL_CODE void SetWidescreen(const char *filename) {
fcopy(wideBinPath, "/_nds/nds-bootstrap/wideCheatData.bin");

// Prepare for reboot into 16:10 TWL_FIRM
mkdir("sd:/luma", 0777);
mkdir("sd:/luma/sysmodules", 0777);
rename("sd:/luma/sysmodules/TwlBg.cxi", "sd:/luma/sysmodules/TwlBg_bak.cxi");
rename("sd:/_nds/TWiLightMenu/TwlBg/Widescreen.cxi", "sd:/luma/sysmodules/TwlBg.cxi");

Expand Down

0 comments on commit c3f30de

Please sign in to comment.