mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-05 00:38:52 +00:00
Implement Script Downloading and parsing of the Informations.
To-Do: Revision checking of the current and new Scripts.
This commit is contained in:
@@ -109,6 +109,4 @@ namespace download {
|
||||
void deleteFileList(std::string file, std::string message);
|
||||
void installFileList(std::string file, std::string message);
|
||||
void extractFileList(std::string file, std::string input, std::string output, std::string message);
|
||||
}
|
||||
|
||||
void downloadScripts(void);
|
||||
}
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "screens/screen.hpp"
|
||||
#include "screens/screenCommon.hpp"
|
||||
|
||||
#include "utils/config.hpp"
|
||||
#include "utils/fileBrowse.h"
|
||||
|
||||
class ScriptBrowse : public Screen
|
||||
@@ -36,8 +37,10 @@ class ScriptBrowse : public Screen
|
||||
public:
|
||||
void Draw(void) const override;
|
||||
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override;
|
||||
ScriptBrowse();
|
||||
|
||||
private:
|
||||
nlohmann::json currentFile;
|
||||
std::vector<DirEntry> dirContents;
|
||||
mutable int screenPos = 0;
|
||||
mutable int selection = 0;
|
||||
|
||||
@@ -26,5 +26,6 @@ void findNdsFiles(vector<DirEntry>& dirContents);
|
||||
bool nameEndsWith(const std::string& name, const std::vector<std::string> extensionList);
|
||||
void getDirectoryContents(std::vector<DirEntry>& dirContents, const std::vector<std::string> extensionList);
|
||||
void getDirectoryContents(std::vector<DirEntry>& dirContents);
|
||||
std::vector<std::string> getContents(const std::string &name, const std::vector<std::string> &extensionList);
|
||||
|
||||
#endif //FILE_BROWSE_H
|
||||
Reference in New Issue
Block a user