mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@851 385bec56-5757-e545-9c3a-d8741f4650f1
57 lines
1.9 KiB
C++
57 lines
1.9 KiB
C++
/*---------------------------------------------------------------------------*
|
|
Project: Horizon
|
|
File: PreorderTitleRestoreManager.h
|
|
|
|
Copyright (C)2015 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$
|
|
*---------------------------------------------------------------------------*/
|
|
#ifndef SOURCES_CONSOLERESTORE_PREORDERTITLERESTORERMANAGER_H_
|
|
#define SOURCES_CONSOLERESTORE_PREORDERTITLERESTORERMANAGER_H_
|
|
|
|
#include <nn/Result.h>
|
|
#include <nn/cfg.h>
|
|
#include <nn/CTR/CTR_ProgramId.h>
|
|
#include "PreorderTitleRestorer.h"
|
|
|
|
namespace ConsoleRestore
|
|
{
|
|
|
|
class PreorderTitleRestorerManager
|
|
{
|
|
public:
|
|
PreorderTitleRestorerManager();
|
|
virtual ~PreorderTitleRestorerManager();
|
|
|
|
// 修復を開始する。既に開始していた場合何もしない
|
|
static void Start(nn::ProgramId list[], size_t size, nn::cfg::CTR::CfgCountryCode country, nn::cfg::CTR::CfgRegionCode region);
|
|
|
|
static bool IsFinished();
|
|
static nn::Result GetResult();
|
|
static void End();
|
|
static u64 GetProgress();
|
|
|
|
private:
|
|
static void ThreadFunc();
|
|
static nn::ProgramId* s_List;
|
|
static size_t s_Size;
|
|
static nn::cfg::CTR::CfgCountryCode s_Country;
|
|
static nn::cfg::CTR::CfgRegionCode s_Region;
|
|
|
|
static nn::Result s_Result;
|
|
static nn::os::Thread s_Thread;
|
|
static const size_t STACK_SIZE = 12 * 1024;
|
|
static nn::os::StackBuffer<STACK_SIZE> s_ThreadStack;
|
|
static PreorderTitleRestorer* m_Restorer;
|
|
};
|
|
|
|
} /* namespace ConsoleRestore */
|
|
|
|
#endif /* SOURCES_CONSOLERESTORE_PREORDERTITLERESTORERMANAGER_H_ */
|