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

Commit 75dd24a

Browse files
committed
fix block home button and some errors
1 parent 2b71966 commit 75dd24a

File tree

4 files changed

+39
-25
lines changed

4 files changed

+39
-25
lines changed

NightFall/NightFall.vcxproj

+36-20
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,42 @@
1818
<Platform>x64</Platform>
1919
</ProjectConfiguration>
2020
</ItemGroup>
21+
<ItemGroup>
22+
<ClCompile Include="source\amssu\amssu.c" />
23+
<ClCompile Include="source\FS\FS.cpp" />
24+
<ClCompile Include="source\main.cpp" />
25+
<ClCompile Include="source\net\net.cpp" />
26+
<ClCompile Include="source\psm\psm.cpp" />
27+
<ClCompile Include="source\sm\sm.cpp" />
28+
<ClCompile Include="source\spl\spl.cpp" />
29+
<ClCompile Include="source\thread.cpp" />
30+
<ClCompile Include="source\UI\DownloadUpdate.cpp" />
31+
<ClCompile Include="source\UI\InstallUpdate.cpp" />
32+
<ClCompile Include="source\UI\PreInstallUpdate.cpp" />
33+
<ClCompile Include="source\UI\PreOfflineInstall.cpp" />
34+
<ClCompile Include="source\UI\UpToDate.cpp" />
35+
</ItemGroup>
36+
<ItemGroup>
37+
<ClInclude Include="include\amssu\amssu.h" />
38+
<ClInclude Include="include\FS\FS.hpp" />
39+
<ClInclude Include="include\json.hpp" />
40+
<ClInclude Include="include\net\net.hpp" />
41+
<ClInclude Include="include\psm\psm.hpp" />
42+
<ClInclude Include="include\service_guard.h" />
43+
<ClInclude Include="include\sm\sm.hpp" />
44+
<ClInclude Include="include\spl\spl.hpp" />
45+
<ClInclude Include="include\thread.hpp" />
46+
<ClInclude Include="include\Types.hpp" />
47+
<ClInclude Include="include\UI\DownloadUpdate.hpp" />
48+
<ClInclude Include="include\UI\InstallUpdate.hpp" />
49+
<ClInclude Include="include\UI\PreInstallUpdate.hpp" />
50+
<ClInclude Include="include\UI\PreOfflineInstall.hpp" />
51+
<ClInclude Include="include\UI\UI.hpp" />
52+
<ClInclude Include="include\UI\UpToDate.hpp" />
53+
</ItemGroup>
54+
<ItemGroup>
55+
<None Include="Makefile" />
56+
</ItemGroup>
2157
<PropertyGroup Label="Globals">
2258
<VCProjectVersion>15.0</VCProjectVersion>
2359
<ProjectGuid>{A8B2FDD7-257D-44E6-B723-14EB7BDEAA73}</ProjectGuid>
@@ -96,26 +132,6 @@
96132
</PropertyGroup>
97133
<ItemDefinitionGroup>
98134
</ItemDefinitionGroup>
99-
<ItemGroup>
100-
<None Include="Makefile" />
101-
</ItemGroup>
102-
<ItemGroup>
103-
<ClCompile Include="source\amssu\amssu.c" />
104-
<ClCompile Include="source\FS\FS.cpp" />
105-
<ClCompile Include="source\main.cpp" />
106-
<ClCompile Include="source\net\net.cpp" />
107-
<ClCompile Include="source\sm\sm.cpp" />
108-
<ClCompile Include="source\spl\spl.cpp" />
109-
</ItemGroup>
110-
<ItemGroup>
111-
<ClInclude Include="include\amssu\amssu.hpp" />
112-
<ClInclude Include="include\FS\FS.hpp" />
113-
<ClInclude Include="include\net\net.hpp" />
114-
<ClInclude Include="include\service_guard.h" />
115-
<ClInclude Include="include\sm\sm.hpp" />
116-
<ClInclude Include="include\spl\spl.hpp" />
117-
<ClInclude Include="include\Types.hpp" />
118-
</ItemGroup>
119135
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
120136
<ImportGroup Label="ExtensionTargets">
121137
</ImportGroup>

NightFall/source/UI/DownloadUpdate.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ DownloadUpdatePage::DownloadUpdatePage(brls::StagedAppletFrame *frame)
5151
this->label1 = new brls::Label(brls::LabelStyle::DESCRIPTION, "Firmware: " + jso1n["fw_info"]["version"].get<std::string>());
5252
this->label1->setHorizontalAlign(NVG_ALIGN_CENTER);
5353
this->label1->setParent(this);
54-
/* Prevent the home button from being pressed during installation. */
55-
hiddbgDeactivateHomeButton();
5654
}
5755

5856
void DownloadUpdatePage::draw(NVGcontext *vg, int x, int y, unsigned width, unsigned height, brls::Style *style, brls::FrameContext *ctx)

NightFall/source/UI/InstallUpdate.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ InstallUpdate::InstallUpdate(brls::StagedAppletFrame *frame, std::string label,
4646
this->label1->setParent(this);
4747
brls::Logger::debug(path);
4848
Install.m_path = path;
49-
/* Prevent the home button from being pressed during installation. */
50-
hiddbgDeactivateHomeButton();
5149
}
5250

5351
InstallUpdate::~InstallUpdate()

NightFall/source/thread.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ namespace BackGround
125125
}
126126
if (this->m_InstallUpdate == true)
127127
{
128+
/* Prevent the home button from being pressed during installation. */
129+
hiddbgDeactivateHomeButton();
128130
std::ifstream o("/switch/NightFall/config.json");
129131
o >> config;
130132
if (m_UpdateState == UpdateState::NeedsValidate)
@@ -217,7 +219,7 @@ namespace BackGround
217219
}
218220
if (m_UpdateState == UpdateState::AwaitingReboot)
219221
{
220-
if (config["Exfat"].get<int>() == 1)
222+
if (config["DeleteFolder"].get<int>() == 1)
221223
FS::DeleteDir(this->m_path.c_str());
222224
brls::Logger::debug("Preparado: Reinicio en 3s");
223225
std::this_thread::sleep_for(3s);

0 commit comments

Comments
 (0)