mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-05 00:38:52 +00:00
My last work for today.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
* reasonable ways as different from the original version.
|
||||
*/
|
||||
|
||||
#include "download/download.hpp"
|
||||
#include "screens/mainMenu.hpp"
|
||||
#include "screens/settings.hpp"
|
||||
#include "screens/scriptlist.hpp"
|
||||
@@ -91,4 +92,8 @@ void MainMenu::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
Gui::setScreen(std::make_unique<Settings>());
|
||||
}
|
||||
}
|
||||
|
||||
if (hDown & KEY_X) {
|
||||
downloadScripts();
|
||||
}
|
||||
}
|
||||
@@ -265,7 +265,7 @@ void loadColors(nlohmann::json &json) {
|
||||
|
||||
ScriptList::ScriptList() {
|
||||
dirContents.clear();
|
||||
chdir(SCRIPTS_PATH);
|
||||
chdir(Config::ScriptPath.c_str());
|
||||
getDirectoryContents(dirContents);
|
||||
for(uint i=0;i<dirContents.size();i++) {
|
||||
fileInfo.push_back(parseInfo(dirContents[i].name));
|
||||
|
||||
Reference in New Issue
Block a user