Working stuff! :) Last steps -> Add error checking.

This commit is contained in:
VoltZ
2019-11-02 02:01:53 +01:00
committed by GitHub
parent da49c38c9f
commit 44c31c46d5
5 changed files with 223 additions and 51 deletions
+10 -4
View File
@@ -67,6 +67,9 @@ void notConnectedMsg(void);
*/
void notImplemented(void);
// Display the done msg.
void doneMsg(void);
/**
* Get info from the GitHub API about a Release.
* repo is where to get from. (Ex. "RocketRobz/TWiLightMenu")
@@ -100,7 +103,10 @@ std::string getLatestCommit(std::string repo, std::string array, std::string ite
*/
std::vector<ThemeEntry> getThemeList(std::string repo, std::string path);
/**
* Update nds-bootstrap to the latest build.
*/
void updateBootstrap(bool nightly);
namespace download {
void downloadRelease(std::string repo, std::string file, std::string output, std::string message);
void downloadFile(std::string file, std::string output, std::string message);
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);
}
+10 -2
View File
@@ -37,15 +37,23 @@ public:
void Draw(void) const override;
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override;
ScriptList();
void showParsedObjects(void) const;
private:
void DrawList(void) const;
void DrawSingleObject(void) const;
void ListSelection(u32 hDown, u32 hHeld);
void SelectFunction(u32 hDown, u32 hHeld);
int mode = 0;
std::vector<DirEntry> dirContents;
mutable int screenPos = 0;
mutable int selection = 0;
mutable int screenPos2 = 0;
mutable int selection2 = 0;
int keyRepeatDelay = 0;
int fastMode = false;
bool dirChanged = true;
};
#endif