Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Commit

Permalink
Save console model setting to nds-bootstrap.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jun 12, 2018
1 parent df50317 commit 07653e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ using std::wstring;
#include <3ds.h>

static CIniFile settingsini( "sdmc:/_nds/dsimenuplusplus/settings.ini" );
static CIniFile bootstrapini( "sdmc:/_nds/nds-bootstrap.ini" );

// Settings
Settings_t settings;
Expand Down Expand Up @@ -121,4 +122,7 @@ void SaveSettings(void) {
settingsini.SetInt("SRLOADER", "CONSOLE_MODEL", settings.twl.consoleModel);
settingsini.SetInt("CTR-SETTINGS", "NOTIFICATION_LED", settings.twl.rainbowLed);
settingsini.SaveIniFile("sdmc:/_nds/dsimenuplusplus/settings.ini");

bootstrapini.SetInt("NDS-BOOTSTRAP", "CONSOLE_MODEL", settings.twl.consoleModel);
bootstrapini.SaveIniFile("sdmc:/_nds/nds-bootstrap.ini");
}

0 comments on commit 07653e6

Please sign in to comment.