GhosteShop -> Darkstore Part 1

This commit is contained in:
dark98
2021-06-07 01:12:36 +01:00
parent 789891cbc8
commit e88b82bf05
43 changed files with 322 additions and 370 deletions
+2 -2
View File
@@ -34,8 +34,8 @@
#include "msg.hpp"
#include "screenCommon.hpp"
#define _STORE_PATH "sdmc:/3ds/GhosteShop/stores/"
#define _META_PATH "sdmc:/3ds/GhosteShop/MetaData.json"
#define _STORE_PATH "sdmc:/3ds/DarkStore/stores/"
#define _META_PATH "sdmc:/3ds/DarkStore/MetaData.json"
#define _ESHOP_VERSION 4
inline std::unique_ptr<Config> config;
+4 -4
View File
@@ -68,11 +68,11 @@ public:
bool metadata() const { return this->v_metadata; };
void metadata(bool v) { this->v_metadata = v; if (!this->changesMade) this->changesMade = true; };
/* Vérification des Mises à Jour de Ghost eShop au Démarrage. */
/* Vérification des Mises à Jour de DarkStore au Démarrage. */
bool updatecheck() const { return this->v_updateCheck; };
void updatecheck(bool v) { this->v_updateCheck = v; if (!this->changesMade) this->changesMade = true; };
/* Vérification des Mises à Jour de Ghost eShop au Démarrage. */
/* Vérification des Mises à Jour de DarkStore au Démarrage. */
bool usebg() const { return this->v_showBg; };
void usebg(bool v) { this->v_showBg = v; if (!this->changesMade) this->changesMade = true; };
@@ -99,9 +99,9 @@ private:
nlohmann::json json;
bool changesMade = false;
std::string v_language = "en", v_lastStore = "ghosteshop.eshop",
std::string v_language = "en", v_lastStore = "darkstore-homebrew.eshop",
v_3dsxPath = "sdmc:/3ds", v_ndsPath = "sdmc:", v_archivePath = "sdmc:",
v_shortcutPath = "sdmc:/3ds/GhosteShop/shortcuts";
v_shortcutPath = "sdmc:/3ds/DarkStore/shortcuts";
bool v_list = false, v_autoUpdate = true, v_metadata = true, v_updateCheck = true,
v_showBg = false, v_customFont = false, v_changelog = true;
+4 -4
View File
@@ -29,7 +29,7 @@
#include "common.hpp"
#define APP_TITLE "Ghost eShop"
#define APP_TITLE "DarkStore"
#define VERSION_STRING "12.0"
enum DownloadError {
@@ -48,7 +48,7 @@ struct StoreList {
std::string Description;
};
struct GEUpdate {
struct DSUpdate {
bool Available = false;
std::string Notes = "";
std::string Version = "";
@@ -81,10 +81,10 @@ void doneMsg(void);
bool IsUpdateAvailable(const std::string &URL, int revCurrent);
bool DownloadEshop(const std::string &URL, int currentRev, std::string &fl, bool isDownload = false, bool isUDB = false);
bool DownloadSpriteSheet(const std::string &URL, const std::string &file);
GEUpdate IsGEUpdateAvailable();
DSUpdate IsDSUpdateAvailable();
void UpdateAction();
std::vector<StoreList> FetchStores();
C2D_Image FetchScreenshot(const std::string &URL);
std::string GetChangelog();
#endif
#endif