ctr_Repair/trunk/ConsoleDataMigration/sources/ConsoleBackup/MenuSavedataVersion.cpp
N2614 9a3cfd3e9c MMENの8thNUP不具合を解消のためMMENのシステムセーブデータを修正するように
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@823 385bec56-5757-e545-9c3a-d8741f4650f1
2014-10-20 05:41:10 +00:00

67 lines
1.6 KiB
C++

/*---------------------------------------------------------------------------*
Project: Horizon
File: MenuSavedataVersion.cpp
Copyright (C)2014 Nintendo Co., Ltd. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form,
in whole or in part, without the prior written consent of Nintendo.
$Rev$
*---------------------------------------------------------------------------*/
#include "MenuSavedataVersion.h"
const u8 CUP_MAJOR_3 = 4;
const u8 CUP_MAJOR_7 = 8;
const u8 CUP_MAJOR_8 = 9;
const u8 CUP_MINOR_8_1 = 1;
namespace ConsoleBackup
{
MenuSavedataVersion::MenuSavedataVersion()
{
// TODO 自動生成されたコンストラクター・スタブ
}
MenuSavedataVersion::~MenuSavedataVersion()
{
// TODO Auto-generated destructor stub
}
bool MenuSavedataVersion::IsModificationRequired(u8 cupMajor, u8 cupMinor)
{
if(cupMajor < CUP_MAJOR_3)
{
return false;
}
if(CUP_MAJOR_3<= cupMajor && cupMajor <= CUP_MAJOR_7)
{
return true;
}
if(cupMajor == CUP_MAJOR_8)
{
if(cupMinor <= CUP_MINOR_8_1)
{
return true;
}
else if(cupMinor > CUP_MINOR_8_1)
{
return false;
}
}
if(cupMajor > CUP_MAJOR_8)
{
return false;
}
return false;
}
} /* namespace ConsoleBackup */