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@415 385bec56-5757-e545-9c3a-d8741f4650f1
60 lines
1.9 KiB
C++
60 lines
1.9 KiB
C++
/*---------------------------------------------------------------------------*
|
|
Project: Horizon
|
|
File: Exporter.h
|
|
|
|
Copyright 2009 Nintendo. 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 EXPORTER_H_
|
|
#define EXPORTER_H_
|
|
|
|
#include <nn.h>
|
|
#include "HardwareStateManager.h"
|
|
|
|
namespace ConsoleBackup
|
|
{
|
|
|
|
// 出力ファイルリストのコンテキストを初期化する。出力ファイルリストを
|
|
// 生成する前に必ず呼び出す必要がある
|
|
void InitializeFileListContext();
|
|
|
|
// 新たにスレッドを起動して、DSiWareのセーブデータをSDカードに出力する
|
|
nn::Result ExportTwlSaveData();
|
|
|
|
// 新たにスレッドを起動して、TWL写真領域のデータをSDカードに出力する
|
|
void ExportTwlPhotoData();
|
|
|
|
// 新たにスレッドを起動して、TWLサウンド領域のデータをSDカードに出力する
|
|
void ExportTwlSoundData();
|
|
|
|
// 本体固有情報をSDカードに出力する
|
|
// 新たにスレッドを起動して、CTR領域のセーブデータをSDカードに出力する
|
|
bool ExportData(common::HardwareStateManager& manager);
|
|
|
|
// NIMのセーブデータをSDカードから削除する
|
|
bool DeleteNimSaveData();
|
|
|
|
// 出力スレッドの進捗を返す
|
|
u32 GetExportProgress();
|
|
|
|
// 出力スレッドが終了したかどうか
|
|
bool IsExportThreadFinished();
|
|
|
|
// 出力スレッドを終了する
|
|
void FinalizeExportThread();
|
|
|
|
// 出力が成功したかどうか
|
|
bool IsExportSucceeded();
|
|
|
|
}
|
|
|
|
#endif /* EXPORTER_H_ */
|