trunk r512のマージ。バージョンを1.5-0に。

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@513 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-11-15 02:46:20 +00:00
parent 9f154910c4
commit 40d890a511
9 changed files with 33 additions and 41 deletions

View File

@ -53,11 +53,8 @@
#include "ResFont.h"
#include "HardwareStateManager.h"
// svnリビジョン埋め込み用
#include "../../generated/ConsoleBackup/version.h"
#ifndef BACKUP_VERSION_NUM
#define BACKUP_VERSION_NUM 0
#endif
// バージョン表示用
#include "version.h"
namespace {
@ -143,7 +140,7 @@ extern "C" void nnMain(void)
common::HardwareStateManager manager(s_HwUtility);
// 情報出力
COMMON_LOGGER("CTR Console Backup %s Rev.%s\n", __DATE__, BACKUP_VERSION_NUM);
COMMON_LOGGER("CTR Console Backup %s-%s\n", CONSOLE_REPAIR_VERSION_MAJOR, CONSOLE_REPAIR_VERSION_MINOR);
COMMON_LOGGER("System Ver. %d.%d.%d-%d\n",
s_HwUtility.GetCupMajorVersion(),
s_HwUtility.GetCupMinorVersion(),
@ -234,7 +231,6 @@ extern "C" void nnMain(void)
titleColor,
flip,
adapterState,
BACKUP_VERSION_NUM,
s_HwUtility.GetCupMajorVersion(),
s_HwUtility.GetCupMinorVersion(),
s_HwUtility.GetCupMicroVersion(),

View File

@ -71,11 +71,4 @@ DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/RepairTool.desc
include $(ROOT_OMAKE)/modulerules
VERSION_H = $(file ../../generated/$(TARGET_PROGRAM)/version.h)
$(VERSION_H): $(SOURCES)
section
bash genversion.sh
RequireSetup($(VERSION_H))
build: $(VERSION_H) $(DEFAULT_TARGETS)
build: $(DEFAULT_TARGETS)

View File

@ -1,4 +0,0 @@
#!/bin/bash -f
cd ../
echo "#define BACKUP_VERSION_NUM \"`svn info|grep 'Last Changed Rev:'| awk -F ':' '{print $2}'|tr -d '\n'| sed 's/ //g'`\"" > ../generated/ConsoleBackup/version.h

View File

@ -47,11 +47,8 @@
#include "ResFont.h"
#include "HardwareStateManager.h"
// svnリビジョン埋め込み用
#include "../../generated/ConsoleRestore/version.h"
#ifndef RESTORE_VERSION_NUM
#define RESOTRE_VERSION_NUM 0
#endif
// バージョン表示用
#include "version.h"
namespace {
@ -164,7 +161,7 @@ extern "C" void nnMain(void)
common::HardwareStateManager manager(s_HwUtility);
// 情報出力
COMMON_LOGGER("CTR Console Restore %s Rev.%s\n", __DATE__, RESTORE_VERSION_NUM);
COMMON_LOGGER("CTR Console Restore %s-%s\n", CONSOLE_REPAIR_VERSION_MAJOR, CONSOLE_REPAIR_VERSION_MINOR);
COMMON_LOGGER("System Ver. %d.%d.%d-%d\n", s_HwUtility.GetCupMajorVersion(),
s_HwUtility.GetCupMinorVersion(),
s_HwUtility.GetCupMicroVersion(),
@ -275,7 +272,6 @@ extern "C" void nnMain(void)
titleColor,
flip,
adapterState,
RESTORE_VERSION_NUM,
s_HwUtility.GetCupMajorVersion(),
s_HwUtility.GetCupMinorVersion(),
s_HwUtility.GetCupMicroVersion(),

View File

@ -74,11 +74,4 @@ DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/RepairTool.desc
include $(ROOT_OMAKE)/modulerules
VERSION_H = $(file ../../generated/$(TARGET_PROGRAM)/version.h)
$(VERSION_H): $(SOURCES)
section
bash genversion.sh
RequireSetup($(VERSION_H))
build: $(VERSION_H) $(DEFAULT_TARGETS)
build: $(DEFAULT_TARGETS)

View File

@ -1,4 +0,0 @@
#!/bin/bash -f
cd ../
echo "#define RESTORE_VERSION_NUM \"`svn info|grep 'Last Changed Rev:'| awk -F ':' '{print $2}'|tr -d '\n'| sed 's/ //g'`\"" > ../generated/ConsoleRestore/version.h

View File

@ -15,6 +15,7 @@
#include "DrawSystemState.h"
#include "ResFont.h"
#include "version.h"
#include <nn/nwm.h>
@ -98,7 +99,6 @@ void DrawSystemState
nn::util::FloatColor titleColor,
bool flip,
std::string& adapterState,
const char* toolVersion,
u8 cupMajorVersion,
u8 cupMinorVersion,
u8 cupMicroVersion,
@ -169,7 +169,8 @@ void DrawSystemState
renderSystem.SetFontSize(fontwidth);
// ツール名、ハイライト
renderSystem.DrawText(0, line++ * fontheight, "%s %s Rev.%s", toolName, __DATE__, toolVersion);
renderSystem.DrawText(0, line++ * fontheight, "%s %s-%s", toolName, CONSOLE_REPAIR_VERSION_MAJOR,
CONSOLE_REPAIR_VERSION_MINOR);
renderSystem.SetColor(titleColor.r, titleColor.g, titleColor.b);
renderSystem.FillRectangle(0, (line - 1) * fontheight, 400, fontheight);
renderSystem.SetColor(1.f, 1.f, 1.f);

View File

@ -58,7 +58,6 @@ void DrawSystemState
nn::util::FloatColor titleColor,
bool flip,
std::string& adapterState,
const char* toolVersion,
u8 cupMajorVersion,
u8 cupMinorVersion,
u8 cupMicroVersion,

View File

@ -0,0 +1,22 @@
/*---------------------------------------------------------------------------*
Project: Horizon
File: version.h
Copyright 2009-2011 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 VERSION_H_
#define VERSION_H_
#define CONSOLE_REPAIR_VERSION_MAJOR "1.5"
#define CONSOLE_REPAIR_VERSION_MINOR "0"
#endif /* VERSION_H_ */