Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
D3fau4 committed Sep 18, 2020
1 parent e6968fb commit 99e30aa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
8 changes: 7 additions & 1 deletion NightFall/source/UI/InstallUpdate.cpp
Expand Up @@ -25,6 +25,7 @@ SOFTWARE.*/

BackGround::BackgroundTasks Install;
json v2;
bool rebootdialog = false;
InstallUpdate::InstallUpdate(brls::StagedAppletFrame *frame)
: frame(frame)
{
Expand Down Expand Up @@ -56,6 +57,11 @@ void InstallUpdate::draw(NVGcontext *vg, int x, int y, unsigned width, unsigned
if (Install.m_InstallProgress == 5)
{
Install.m_InstallUpdate = false;
brls::Dialog *dialog = new brls::Dialog("the system will reboot in 3 seconds");
if (rebootdialog != true){
rebootdialog = true;
dialog->open();
}
this->frame->nextStage();
}
else if (Install.m_InstallUpdate != true)
Expand All @@ -65,7 +71,7 @@ void InstallUpdate::draw(NVGcontext *vg, int x, int y, unsigned width, unsigned
this->progressDisp->setProgress(Install.m_InstallProgress, 5);
this->progressDisp->frame(ctx);
this->label->frame(ctx);
this->label1->frame(ctx);
//this->label1->frame(ctx);
}

void InstallUpdate::layout(NVGcontext *vg, brls::Style *style, brls::FontStash *stash)
Expand Down
7 changes: 7 additions & 0 deletions NightFall/source/main.cpp
Expand Up @@ -282,6 +282,13 @@ int main(int argc, char *argv[])
// Run the app
while (brls::Application::mainLoop())
{
if (R_SUCCEEDED(FS::checkFile("/switch/NightFall/config.json")))
{
brls::Logger::debug("Create Config");
std::ofstream out("/switch/NightFall/config.json");
out << Conf;
out.close();
}
if (wantExfat->getSelectedValue() != Conf["Exfat"].get<int>())
{
Conf["Exfat"] = wantExfat->getSelectedValue();
Expand Down
23 changes: 17 additions & 6 deletions README.md
@@ -1,9 +1,20 @@
# NightFall
A (online) System Updater for Nintendo Switch made whit [borealis](https://github.com/natinusala/borealis)

### :warning: Warning: the program is in WIP and may can crash.
![main screen](https://cdn.discordapp.com/attachments/519986961382113283/752452468817788968/2020090710565200-DB1426D1DFD034027CECDE9C2DD914B8.jpg)
A simple (online) System Updater for Nintendo Switch made whit [borealis](https://github.com/natinusala/borealis)

![main screen](https://media.discordapp.net/attachments/519986961382113283/756574669968244816/2020091819310600-DB1426D1DFD034027CECDE9C2DD914B8.jpg?width=1204&height=677)

![Settings](https://media.discordapp.net/attachments/519986961382113283/756574668600901793/2020091819311400-DB1426D1DFD034027CECDE9C2DD914B8.jpg?width=1204&height=677)

## Make a custom server:
If you want to create your own server you will have to do a special setup, you can use this tool: [NightFall Server](https://github.com/D3fau4/NightFall-Server)

## Credits:
* [Atmosphère](https://github.com/Atmosphere-NX/Atmosphere) for the sysupdate api.
* [ReiNXtoolkit](https://github.com/Reisyukaku/ReiNXToolkit) for his network implementation.
* [natinusala](https://github.com/natinusala) for [borealis](https://github.com/natinusala/borealis).

* [Atmosphère](https://github.com/Atmosphere-NX/Atmosphere) for the sysupdate api.

* [ReiNXtoolkit](https://github.com/Reisyukaku/ReiNXToolkit) for his network implementation.

* [natinusala](https://github.com/natinusala) for [borealis](https://github.com/natinusala/borealis).

* [nlohmann](https://github.com/nlohmann) for [json.hpp](https://github.com/nlohmann/json)

0 comments on commit 99e30aa

Please sign in to comment.