mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
2ndNUP以降の本体ならばエラーにする
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@488 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
a939a8ec68
commit
9ce5ed8cfd
@ -62,6 +62,20 @@ bool s_PlayedFailSound = false;
|
||||
|
||||
} // namespace <unnamed>
|
||||
|
||||
bool RequiresNewerVersionTool(common::HardwareStateManager& manager)
|
||||
{
|
||||
common::VerDef versionData;
|
||||
manager.GetVersionData(&versionData);
|
||||
if(common::CUP_MAJOR_VER_2ND_NUP <= versionData.cup.majorVersion)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void PutAliveMessage(::std::vector<std::string>& operationMessage, const char* str)
|
||||
{
|
||||
std::string message = std::string(str);
|
||||
@ -115,7 +129,7 @@ void ControlState(common::HardwareStateManager& manager, ::std::vector<std::stri
|
||||
s_SdWriteProetctAnnotation = true;
|
||||
common::PlaySound(common::SOUND_ANNOTATION);
|
||||
}
|
||||
operationMessage.push_back(::std::string("Can*t Write SD Card!!\n"));
|
||||
operationMessage.push_back(::std::string("Can't Write SD Card!!\n"));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -174,6 +188,14 @@ void ControlState(common::HardwareStateManager& manager, ::std::vector<std::stri
|
||||
}
|
||||
}
|
||||
|
||||
// 2ndNUP本体ならばエラー表示
|
||||
if(RequiresNewerVersionTool(manager))
|
||||
{
|
||||
COMMON_LOGGER("Newer Console Backup required.\n");
|
||||
s_BackupState = FAIL;
|
||||
break;
|
||||
}
|
||||
|
||||
if (nextStep && !error)
|
||||
{
|
||||
COMMON_LOGGER("Checking SaveData\n");
|
||||
|
||||
@ -41,6 +41,8 @@ const u64 INFRA_DEVICE_ID_OFFSET = 0x400000000;
|
||||
|
||||
const size_t FILE_COPY_HEAP_SIZE = 16 * 1024 * 1024;
|
||||
|
||||
const u8 CUP_MAJOR_VER_2ND_NUP = 3;
|
||||
|
||||
// NOR領域のみにある設定データ用構造体
|
||||
struct NtrNorData
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user