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