Begin to add variables for 3DSX & NDS.
This commit is contained in:
parent
85a18eb031
commit
86b6adef8f
5 changed files with 54 additions and 13 deletions
|
|
@ -72,4 +72,6 @@ extern char * arg0;
|
|||
#define STORE_PATH "sdmc:/3ds/Universal-Updater/stores/" // Default Store path.
|
||||
#define ENTRIES_PER_SCREEN 3
|
||||
#define ENTRIES_PER_LIST 7
|
||||
#define metaFile "sdmc:/3ds/Universal-Updater/ScriptInfo.json"
|
||||
#define metaFile "sdmc:/3ds/Universal-Updater/ScriptInfo.json"
|
||||
#define _3DSX_PATH "sdmc:/3ds"
|
||||
#define _NDS_PATH "sdmc:"
|
||||
|
|
@ -124,6 +124,12 @@ public:
|
|||
bool showSpeed() { return this->v_showSpeed; }
|
||||
void showSpeed(bool v) { this->v_showSpeed = v; if (!this->changesMade) this->changesMade = true; }
|
||||
|
||||
// Variables.
|
||||
std::string _3dsxpath() { return this->v_3dsx_install_path; }
|
||||
void _3dsxpath(std::string v) { this->v_3dsx_install_path = v; if (!this->changesMade) this->changesMade = true; }
|
||||
std::string ndspath() { return this->v_nds_install_path; }
|
||||
void ndspath(std::string v) { this->v_nds_install_path = v; if (!this->changesMade) this->changesMade = true; }
|
||||
|
||||
// Mainly helper.
|
||||
bool getBool(const std::string &key);
|
||||
void setBool(const std::string &key, bool v);
|
||||
|
|
@ -134,7 +140,7 @@ public:
|
|||
private:
|
||||
nlohmann::json json; // Our private JSON file.
|
||||
bool changesMade = false, initialChanges = false;
|
||||
int configVersion = 1;
|
||||
int configVersion = 2;
|
||||
|
||||
// Color variables and more.
|
||||
u32 v_barColor, v_topBG, v_bottomBG, v_textColor, v_buttonColor, v_selectedColor, v_unselectedColor, v_progressbarColor,
|
||||
|
|
@ -142,6 +148,9 @@ private:
|
|||
std::string v_scriptPath, v_musicPath, v_storePath, v_autobootFile, v_language;
|
||||
int v_langPath, v_viewMode, v_autoboot, v_keyDelay;
|
||||
bool v_logging, v_useBars, v_screenFade, v_progressDisplay, v_firstStartup, v_useScriptColor, v_showSpeed;
|
||||
|
||||
// Some variables.
|
||||
std::string v_3dsx_install_path, v_nds_install_path;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue