ctr_Repair/branches/1stNUP_for_2ndNUP/sources/common/DrawSystemState.h
N2614 bfcd9f164d リビジョン 731-742 を trunk/ConsoleDataMigration からマージ:
CTR、SPRより後のモデルではXボタンで無線ON/OFFを切り替えられるように。ビルドにはnwm_ExtAPI.cppを差し替える必要がある
........
バージョンを更新
........
Xボタンによる無線トグル機能を削除
........
リンクエラーを修正
........
Backup起動時に無線OFF、Restore起動時に無線ON、Restoreの終了ステートで無線OFFするように
........
trunkからコピーしたpl_SharedDataTitleId.hを追加
ビルド時の注意を更新
........
リビジョン 716 を trunk/ConsoleDataMigration からマージ:
コメント追加。aes鍵設定の警告メッセージを削除
........

........
nwmのパッチを追加
........
ビルド環境を更新
........
リリースしないのでConsoleRestoreをビルド対象から外す
........
ビルド環境を更新
........
無線トグル機能の削除忘れ
........


git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@743 385bec56-5757-e545-9c3a-d8741f4650f1
2013-05-27 04:22:50 +00:00

84 lines
2.5 KiB
C++

/*---------------------------------------------------------------------------*
Project: Horizon
File: DrawSystemState.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 DRAWSYSTEMSTATE_H_
#define DRAWSYSTEMSTATE_H_
#include <nn.h>
#include "demo.h"
#include <nn/cfg/CTR/cfg_RegionCode.h>
#include <nn/os/os_SharedInfo.h>
#include <nn/cfg/CTR/cfg_Api.h>
#include <nn/cfg/CTR/cfg_ApiInit.h>
#include <nn/cfg/CTR/cfg_ApiSys.h>
#include <nn/util/util_Color.h>
#include <string>
#include <vector>
#include "common_Types.h"
// 描画色の定義
#define WHITE_COLOR 1.f, 1.f, 1.f, 1.f
#define GRAY_COLOR 0.5, 0.5, 0.5, 1.f
#define RED_COLOR 1.f, 0.f, 0.f, 1.f
#define GREEN_COLOR 0.f, 1.f, 0.f, 1.f
#define BLUE_COLOR 0.f, 0.f, 1.f, 1.f
#define SUCCESS_COLOR 0.f, 0.6f,0.f, 1.f
#define FAIL_COLOR 0.6f, 0.f,0.f, 1.f
#define NORMAL_COLOR 0.f, 0.f, 0.f, 1.f
#define WARN_COLOR 0.43f, 0.43f, 0.f, 1.f
namespace common
{
// 現在の描画先ディスプレイを返す
// target NN_GX_DISPLAY0 または NN_GX_DISPLAY1
// flip 上下画面を入れ替えているかどうか
u32 GetRenderTarget(u32 target, bool flip = false);
// システム状態を描画する
// InitializeResFont()、demo::RenderSystemDrawing.Initializeが呼び出されている必要がある
void DrawSystemState
(
const char* toolName,
demo::RenderSystemDrawing& renderSystem,
nn::util::FloatColor titleColor,
bool flip,
std::string& adapterState,
u8 cupMajorVersion,
u8 cupMinorVersion,
u8 cupMicroVersion,
u8 nupVersion,
u8 batteryRemain,
u64 deviceId,
u64 friendCode,
u32 progress,
bool isProcessFailed,
bool isProcessSucceeded,
bool isProcessWarning,
char8* macAddress,
::std::vector<std::string>& operationMessage,
nn::cfg::CTR::CfgRegionCode region,
u8* s_SerialNo,
bool readFriendCode,
bool isWifiOn
);
}
#endif /* DRAWSYSTEMSTATE_H_ */