Add %ARCHIVE_DEFAULT%.

This commit is contained in:
StackZ
2020-07-01 00:27:04 +02:00
parent ba57bb743b
commit 54c426032b
7 changed files with 231 additions and 157 deletions
+2 -3
View File
@@ -63,8 +63,6 @@ using json = nlohmann::json;
#endif
extern char * arg0;
#define WORKING_DIR "/"
#define SCRIPTS_PATH "sdmc:/3ds/Universal-Updater/scripts/" // The Scripts will be here.
#define MUSIC_PATH "sdmc:/3ds/Universal-Updater/Music.wav" // Default Music File / Path.
@@ -74,4 +72,5 @@ extern char * arg0;
#define ENTRIES_PER_LIST 7
#define metaFile "sdmc:/3ds/Universal-Updater/ScriptInfo.json"
#define _3DSX_PATH "sdmc:/3ds"
#define _NDS_PATH "sdmc:"
#define _NDS_PATH "sdmc:"
#define ARCHIVES_DEFAULT "sdmc:"
+4 -2
View File
@@ -129,7 +129,9 @@ public:
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; }
std::string archivepath() { return this->v_archive_path; }
void archivepath(std::string v) { this->v_archive_path = v; if (!this->changesMade) this->changesMade = true; }
// Mainly helper.
bool getBool(const std::string &key);
void setBool(const std::string &key, bool v);
@@ -150,7 +152,7 @@ private:
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;
std::string v_3dsx_install_path, v_nds_install_path, v_archive_path;
};
#endif