From 74ee219364c09f2ac6b68b705aeff9a2b3713525 Mon Sep 17 00:00:00 2001 From: N2614 Date: Fri, 30 Sep 2011 09:12:14 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BB=E3=83=BC=E3=83=96=E3=83=87=E3=83=BC?= =?UTF-8?q?=E3=82=BF=E3=81=AE=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E7=94=A8?= =?UTF-8?q?=E3=82=B9=E3=83=AC=E3=83=83=E3=83=89=E3=81=A7=E3=82=B9=E3=82=BF?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=82=AA=E3=83=BC=E3=83=90=E3=83=BC=E3=83=95?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@439 385bec56-5757-e545-9c3a-d8741f4650f1 --- .../sources/ConsoleBackup/Checker.cpp | 2 +- .../sources/ConsoleBackup/Controller.cpp | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/trunk/ConsoleDataMigration/sources/ConsoleBackup/Checker.cpp b/trunk/ConsoleDataMigration/sources/ConsoleBackup/Checker.cpp index 41fd670..1e8be06 100644 --- a/trunk/ConsoleDataMigration/sources/ConsoleBackup/Checker.cpp +++ b/trunk/ConsoleDataMigration/sources/ConsoleBackup/Checker.cpp @@ -26,7 +26,7 @@ namespace ConsoleBackup namespace { -const size_t CHECKER_STACK_SIZE = 0x1000; +const size_t CHECKER_STACK_SIZE = 0x4000; nn::os::Thread s_CheckerThread; nn::os::StackBuffer s_CheckerThreadStackSize; nn::Result s_CheckerResult; diff --git a/trunk/ConsoleDataMigration/sources/ConsoleBackup/Controller.cpp b/trunk/ConsoleDataMigration/sources/ConsoleBackup/Controller.cpp index 8a3e9a4..2435e92 100644 --- a/trunk/ConsoleDataMigration/sources/ConsoleBackup/Controller.cpp +++ b/trunk/ConsoleDataMigration/sources/ConsoleBackup/Controller.cpp @@ -56,6 +56,29 @@ bool s_PlayedFailSound = false; } // namespace +void PutAliveMessage(::std::vector& operationMessage, const char* str) +{ + std::string message = std::string(str); + static u8 i = 0; + if (i < 0xff / 4) + { + operationMessage.push_back(message + std::string(" /")); + } + else if (i < 0xff * 2 / 4) + { + operationMessage.push_back(message + std::string(" |")); + } + else if (i < 0xff * 3 / 4) + { + operationMessage.push_back(message + std::string(" \\")); + } + else + { + operationMessage.push_back(message + std::string(" -")); + } + i += 4; +} + bool NeedsAcAdapter(common::HardwareStateManager& manager) { return manager.IsBatteryLower() && !manager.IsAdapterConnected(); @@ -164,6 +187,8 @@ void ControlState(common::HardwareStateManager& manager, ::std::vector