mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
無線がOFFの場合ネットワーク関係の処理を進めないように
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@164 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
d63c5f8595
commit
6f28f9c212
@ -21,6 +21,7 @@
|
|||||||
#include <nn/ptm/CTR/ptm_ApiSystem.h>
|
#include <nn/ptm/CTR/ptm_ApiSystem.h>
|
||||||
#include <nn/pl/CTR/pl_PlayHistoryApiSysmenu.h>
|
#include <nn/pl/CTR/pl_PlayHistoryApiSysmenu.h>
|
||||||
#include <nn/cfg/CTR/cfg_ApiSys.h>
|
#include <nn/cfg/CTR/cfg_ApiSys.h>
|
||||||
|
#include <nn/nwm.h>
|
||||||
|
|
||||||
#include "Controller.h"
|
#include "Controller.h"
|
||||||
#include "FileChecker.h"
|
#include "FileChecker.h"
|
||||||
@ -96,6 +97,8 @@ bool s_ReadVersionDone = false;
|
|||||||
nn::Result s_ReadVersionResult = nn::ResultSuccess();
|
nn::Result s_ReadVersionResult = nn::ResultSuccess();
|
||||||
// SDに書き込みできない警告サウンドを鳴らしたかどうか
|
// SDに書き込みできない警告サウンドを鳴らしたかどうか
|
||||||
bool s_SdWriteProetctAnnotation = false;
|
bool s_SdWriteProetctAnnotation = false;
|
||||||
|
// WiFiがOFFである警告サウンドを鳴らしたかどうか
|
||||||
|
bool s_WifiStatusOffAnnotation = false;
|
||||||
|
|
||||||
// ネットワークアップデートを開始したかどうか
|
// ネットワークアップデートを開始したかどうか
|
||||||
bool s_ExecuteFgNup = false;
|
bool s_ExecuteFgNup = false;
|
||||||
@ -374,8 +377,21 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep,
|
|||||||
{
|
{
|
||||||
if (validApSetting)
|
if (validApSetting)
|
||||||
{
|
{
|
||||||
// 削除処理を行う
|
if(nn::nwm::CTR::IsWifiOn())
|
||||||
needsErase = true;
|
{
|
||||||
|
// 削除処理を行う
|
||||||
|
needsErase = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(!s_WifiStatusOffAnnotation)
|
||||||
|
{
|
||||||
|
s_WifiStatusOffAnnotation = true;
|
||||||
|
PlaySound(SOUND_ANNOTATION);
|
||||||
|
}
|
||||||
|
operationMessage.push_back(::std::string("Wireless is Off\n"));
|
||||||
|
error = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -383,8 +399,22 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep,
|
|||||||
{
|
{
|
||||||
if (validApSetting)
|
if (validApSetting)
|
||||||
{
|
{
|
||||||
// ネットワークアップデートを行う
|
if(nn::nwm::CTR::IsWifiOn())
|
||||||
needsUpdate = true;
|
{
|
||||||
|
// ネットワークアップデートを行う
|
||||||
|
needsUpdate = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!s_WifiStatusOffAnnotation)
|
||||||
|
{
|
||||||
|
s_WifiStatusOffAnnotation = true;
|
||||||
|
PlaySound(SOUND_ANNOTATION);
|
||||||
|
}
|
||||||
|
|
||||||
|
operationMessage.push_back(::std::string("Wireless is Off\n"));
|
||||||
|
error = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -929,6 +959,7 @@ void InitializeState()
|
|||||||
s_ReadVersionDone = false;
|
s_ReadVersionDone = false;
|
||||||
s_SdWriteProetctAnnotation = false;
|
s_SdWriteProetctAnnotation = false;
|
||||||
s_ReadVersionResult = nn::ResultSuccess();
|
s_ReadVersionResult = nn::ResultSuccess();
|
||||||
|
s_WifiStatusOffAnnotation = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 GetProgress()
|
u32 GetProgress()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user