上画面も状態に応じて塗りつぶすように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@171 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-03-30 01:09:31 +00:00
parent 4a8b70ad9c
commit f77d3c2b96
4 changed files with 20 additions and 1 deletions

View File

@ -393,6 +393,8 @@ extern "C" void nnMain(void)
infraDeviceId,
friendCode,
GetProgress(),
IsBackupFailed(),
IsBackupSucceeded(),
macAddress,
operationMessage,
region,

View File

@ -412,6 +412,8 @@ extern "C" void nnMain(void)
infraDeviceId,
friendCode,
GetProgress(),
IsRestoreFailed(),
IsRestoreSucceeded(),
macAddress,
operationMessage,
region,

View File

@ -100,6 +100,8 @@ void DrawSystemState
u64 deviceId,
u64 friendCode,
u32 progress,
bool isBackupFailed,
bool isBackupSucceeded,
char8* macAddress,
::std::vector<std::string>& operationMessage,
nn::cfg::CTR::CfgRegionCode region,
@ -125,7 +127,18 @@ void DrawSystemState
// デフォルトで上画面に描画するもの
renderSystem.SetRenderTarget(GetRenderTarget(NN_GX_DISPLAY0, flip));
renderSystem.SetClearColor(GetRenderTarget(NN_GX_DISPLAY0, flip), NORMAL_COLOR);
if (isBackupSucceeded)
{
renderSystem.SetClearColor(GetRenderTarget(NN_GX_DISPLAY0, flip), SUCCESS_COLOR);
}
else if (isBackupFailed)
{
renderSystem.SetClearColor(GetRenderTarget(NN_GX_DISPLAY0, flip), FAIL_COLOR);
}
else
{
renderSystem.SetClearColor(GetRenderTarget(NN_GX_DISPLAY0, flip), NORMAL_COLOR);
}
renderSystem.Clear();

View File

@ -58,6 +58,8 @@ void DrawSystemState
u64 deviceId,
u64 friendCode,
u32 progress,
bool isBackupFailed,
bool isBackupSucceeded,
char8* macAddress,
::std::vector<std::string>& operationMessage,
nn::cfg::CTR::CfgRegionCode region,