diff --git a/trunk/ConsoleDataMigration/sources/ConsoleBackup/ConsoleBackup.cpp b/trunk/ConsoleDataMigration/sources/ConsoleBackup/ConsoleBackup.cpp index 39406b6..981a48c 100644 --- a/trunk/ConsoleDataMigration/sources/ConsoleBackup/ConsoleBackup.cpp +++ b/trunk/ConsoleDataMigration/sources/ConsoleBackup/ConsoleBackup.cpp @@ -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 { @@ -151,7 +148,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(), @@ -242,7 +239,6 @@ extern "C" void nnMain(void) titleColor, flip, adapterState, - BACKUP_VERSION_NUM, s_HwUtility.GetCupMajorVersion(), s_HwUtility.GetCupMinorVersion(), s_HwUtility.GetCupMicroVersion(), diff --git a/trunk/ConsoleDataMigration/sources/ConsoleBackup/OMakefile b/trunk/ConsoleDataMigration/sources/ConsoleBackup/OMakefile index 5a9f4a5..bc1f3f6 100644 --- a/trunk/ConsoleDataMigration/sources/ConsoleBackup/OMakefile +++ b/trunk/ConsoleDataMigration/sources/ConsoleBackup/OMakefile @@ -72,11 +72,4 @@ DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/private/RepairTool.d 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) diff --git a/trunk/ConsoleDataMigration/sources/ConsoleBackup/genversion.sh b/trunk/ConsoleDataMigration/sources/ConsoleBackup/genversion.sh deleted file mode 100755 index 74e3c79..0000000 --- a/trunk/ConsoleDataMigration/sources/ConsoleBackup/genversion.sh +++ /dev/null @@ -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 diff --git a/trunk/ConsoleDataMigration/sources/ConsoleRestore/ConsoleRestore.cpp b/trunk/ConsoleDataMigration/sources/ConsoleRestore/ConsoleRestore.cpp index 46c715f..ab8c616 100644 --- a/trunk/ConsoleDataMigration/sources/ConsoleRestore/ConsoleRestore.cpp +++ b/trunk/ConsoleDataMigration/sources/ConsoleRestore/ConsoleRestore.cpp @@ -48,11 +48,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 { @@ -165,7 +162,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(), @@ -276,7 +273,6 @@ extern "C" void nnMain(void) titleColor, flip, adapterState, - RESTORE_VERSION_NUM, s_HwUtility.GetCupMajorVersion(), s_HwUtility.GetCupMinorVersion(), s_HwUtility.GetCupMicroVersion(), diff --git a/trunk/ConsoleDataMigration/sources/ConsoleRestore/OMakefile b/trunk/ConsoleDataMigration/sources/ConsoleRestore/OMakefile index 9eec3b1..7979488 100644 --- a/trunk/ConsoleDataMigration/sources/ConsoleRestore/OMakefile +++ b/trunk/ConsoleDataMigration/sources/ConsoleRestore/OMakefile @@ -75,11 +75,4 @@ DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/private/RepairTool.d 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) diff --git a/trunk/ConsoleDataMigration/sources/ConsoleRestore/genversion.sh b/trunk/ConsoleDataMigration/sources/ConsoleRestore/genversion.sh deleted file mode 100755 index a774086..0000000 --- a/trunk/ConsoleDataMigration/sources/ConsoleRestore/genversion.sh +++ /dev/null @@ -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 diff --git a/trunk/ConsoleDataMigration/sources/common/DrawSystemState.cpp b/trunk/ConsoleDataMigration/sources/common/DrawSystemState.cpp index d47523c..8256841 100644 --- a/trunk/ConsoleDataMigration/sources/common/DrawSystemState.cpp +++ b/trunk/ConsoleDataMigration/sources/common/DrawSystemState.cpp @@ -15,6 +15,7 @@ #include "DrawSystemState.h" #include "ResFont.h" +#include "version.h" #include @@ -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); diff --git a/trunk/ConsoleDataMigration/sources/common/DrawSystemState.h b/trunk/ConsoleDataMigration/sources/common/DrawSystemState.h index 8ff8c47..db575fe 100644 --- a/trunk/ConsoleDataMigration/sources/common/DrawSystemState.h +++ b/trunk/ConsoleDataMigration/sources/common/DrawSystemState.h @@ -58,7 +58,6 @@ void DrawSystemState nn::util::FloatColor titleColor, bool flip, std::string& adapterState, - const char* toolVersion, u8 cupMajorVersion, u8 cupMinorVersion, u8 cupMicroVersion, diff --git a/trunk/ConsoleDataMigration/sources/common/version.h b/trunk/ConsoleDataMigration/sources/common/version.h new file mode 100644 index 0000000..f95676a --- /dev/null +++ b/trunk/ConsoleDataMigration/sources/common/version.h @@ -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 "2" +#define CONSOLE_REPAIR_VERSION_MINOR "0" + +#endif /* VERSION_H_ */