Universal-Updater -> DarkStore Part 2

Renamed Strings For DarkStore
Made .store Files Useable
This commit is contained in:
dark98
2021-09-09 16:23:22 +01:00
parent 76b41884c5
commit c894ff9924
61 changed files with 650 additions and 648 deletions
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_ANIMATION_HPP
#define _UNIVERSAL_UPDATER_ANIMATION_HPP
#ifndef _DARKSTORE_ANIMATION_HPP
#define _DARKSTORE_ANIMATION_HPP
#include <3ds.h>
#include <string>
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_ARGUMENT_PARSER_HPP
#define _UNIVERSAL_UPDATER_ARGUMENT_PARSER_HPP
#ifndef _DARKSTORE_ARGUMENT_PARSER_HPP
#define _DARKSTORE_ARGUMENT_PARSER_HPP
#include "json.hpp"
#include "store.hpp"
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_CIA_HPP
#define _UNIVERSAL_UPDATER_CIA_HPP
#ifndef _DARKSTORE_CIA_HPP
#define _DARKSTORE_CIA_HPP
#include "common.hpp"
+4 -4
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_CONFIG_HPP
#define _UNIVERSAL_UPDATER_CONFIG_HPP
#ifndef _DARKSTORE_CONFIG_HPP
#define _DARKSTORE_CONFIG_HPP
#include "json.hpp"
@@ -74,11 +74,11 @@ public:
bool metadata() const { return this->v_metadata; };
void metadata(bool v) { this->v_metadata = v; if (!this->changesMade) this->changesMade = true; };
/* U-U Update check on startup. */
/* DarkStore Update check on startup. */
bool updatecheck() const { return this->v_updateCheck; };
void updatecheck(bool v) { this->v_updateCheck = v; if (!this->changesMade) this->changesMade = true; };
/* U-U Update check on startup. */
/* DarkStore Update check on startup. */
bool usebg() const { return this->v_showBg; };
void usebg(bool v) { this->v_showBg = v; if (!this->changesMade) this->changesMade = true; };
+5 -5
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_DOWNLOAD_HPP
#define _UNIVERSAL_UPDATER_DOWNLOAD_HPP
#ifndef _DARKSTORE_DOWNLOAD_HPP
#define _DARKSTORE_DOWNLOAD_HPP
#include "common.hpp"
@@ -48,7 +48,7 @@ struct StoreList {
std::string Description;
};
struct UUUpdate {
struct DSUpdate {
bool Available = false;
std::string Notes = "";
std::string Version = "";
@@ -79,9 +79,9 @@ void notImplemented(void);
void doneMsg(void);
bool IsUpdateAvailable(const std::string &URL, int revCurrent);
bool DownloadUniStore(const std::string &URL, int currentRev, std::string &fl, bool isDownload = false, bool isUDB = false);
bool DownloadStore(const std::string &URL, int currentRev, std::string &fl, bool isDownload = false, bool isDS = false);
bool DownloadSpriteSheet(const std::string &URL, const std::string &file);
UUUpdate IsUUUpdateAvailable();
DSUpdate IsDSUpdateAvailable();
void UpdateAction();
std::vector<StoreList> FetchStores();
C2D_Image FetchScreenshot(const std::string &URL);
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_EXTRACT_HPP
#define _UNIVERSAL_UPDATER_EXTRACT_HPP
#ifndef _DARKSTORE_EXTRACT_HPP
#define _DARKSTORE_EXTRACT_HPP
#include "common.hpp"
+5 -5
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_FILE_BROWSE_HPP
#define _UNIVERSAL_UPDATER_FILE_BROWSE_HPP
#ifndef _DARKSTORE_FILE_BROWSE_HPP
#define _DARKSTORE_FILE_BROWSE_HPP
#include <dirent.h>
#include <string>
@@ -39,9 +39,9 @@ struct DirEntry {
};
/*
UniStore Info struct.
Store Info struct.
*/
struct UniStoreInfo {
struct StoreInfo {
std::string Title;
std::string Author;
std::string URL;
@@ -57,7 +57,7 @@ bool nameEndsWith(const std::string &name, const std::vector<std::string> &exten
void getDirectoryContents(std::vector<DirEntry> &dirContents, const std::vector<std::string> &extensionList);
void getDirectoryContents(std::vector<DirEntry> &dirContents);
std::vector<UniStoreInfo> GetUniStoreInfo(const std::string &path);
std::vector<StoreInfo> GetStoreInfo(const std::string &path);
void dirCopy(DirEntry *entry, const char *destinationPath, const char *sourcePath);
int fcopy(const char *sourcePath, const char *destinationPath);
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_FILES_HPP
#define _UNIVERSAL_UPDATER_FILES_HPP
#ifndef _DARKSTORE_FILES_HPP
#define _DARKSTORE_FILES_HPP
#include "common.hpp"
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_LANG_HPP
#define _UNIVERSAL_UPDATER_LANG_HPP
#ifndef _DARKSTORE_LANG_HPP
#define _DARKSTORE_LANG_HPP
#include "json.hpp"
#include <string>
+4 -4
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_QUEUE_SYSTEM_HPP
#define _UNIVERSAL_UPDATER_QUEUE_SYSTEM_HPP
#ifndef _DARKSTORE_QUEUE_SYSTEM_HPP
#define _DARKSTORE_QUEUE_SYSTEM_HPP
#include "json.hpp"
#include <citro2d.h>
@@ -70,13 +70,13 @@ namespace QueueSystem {
class Queue {
public:
Queue(nlohmann::json object, const C2D_Image &img, const std::string &name, const std::string &uName, const std::string &eName, const std::string &lUpdated) :
obj(object), icn(img), total(object.size()), current(QueueSystem::LastElement), name(name), unistoreName(uName), entryName(eName), lastUpdated(lUpdated) { };
obj(object), icn(img), total(object.size()), current(QueueSystem::LastElement), name(name), storeName(uName), entryName(eName), lastUpdated(lUpdated) { };
QueueStatus status = QueueStatus::None;
nlohmann::json obj;
C2D_Image icn;
int total, current;
std::string name = "", unistoreName = "", entryName = "", lastUpdated = "";
std::string name = "", storeName = "", entryName = "", lastUpdated = "";
};
#endif
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_SCREENSHOT_HPP
#define _UNIVERSAL_UPDATER_SCREENSHOT_HPP
#ifndef _DARKSTORE_SCREENSHOT_HPP
#define _DARKSTORE_SCREENSHOT_HPP
#include <citro2d.h>
#include <string>
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_SCRIPT_UTILS_HPP
#define _UNIVERSAL_UPDATER_SCRIPT_UTILS_HPP
#ifndef _DARKSTORE_SCRIPT_UTILS_HPP
#define _DARKSTORE_SCRIPT_UTILS_HPP
#include "json.hpp"
#include <3ds.h>
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_SOUND_HPP
#define _UNIVERSAL_UPDATER_SOUND_HPP
#ifndef _DARKSTORE_SOUND_HPP
#define _DARKSTORE_SOUND_HPP
#include <3ds.h>
#include <string>
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_STRING_UTILS_HPP
#define _UNIVERSAL_UPDATER_STRING_UTILS_HPP
#ifndef _DARKSTORE_STRING_UTILS_HPP
#define _DARKSTORE_STRING_UTILS_HPP
#include "meta.hpp"
#include <string>
+2 -2
View File
@@ -24,8 +24,8 @@
* reasonable ways as different from the original version.
*/
#ifndef _UNIVERSAL_UPDATER_THEME_HPP
#define _UNIVERSAL_UPDATER_THEME_HPP
#ifndef _DARKSTORE_THEME_HPP
#define _DARKSTORE_THEME_HPP
#include "json.hpp"
#include <citro2d.h>