*Added support for compiling the revision number into the binary. This is then shown in the credits window, and may be used for online updates eventually.

*Note: Compiling this requires a real (CLI) SVN client.

**For the following operating systems, I recommend these clients.
*Windows: SilkSVN (http://www.silksvn.com/en/download)
*Red Hat based GNU/Linux: SummerSoft (http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/)
*Solaris: Sunfreeware (http://www.sunfreeware.com/)

**For the following operating systems, you can simply type in these shell commands.
*Debian based GNU/Linux: apt-get install subversion
*Fedora based GNU/Linux: yum install subversion
*OpenBSD: pkg_add subversion
*FreeBSD: cd /usr/ports/devel/subversion; make install

**Mac OS X usually comes with subversion, but you can download updates here: openCollabNet (http://downloads.open.collab.net/binaries.html)

**For any operating system not listed above, you can obtain the source here: Tigris (http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74)
This commit is contained in:
DRayX7 2009-05-24 20:11:59 +00:00
parent 3d84545b00
commit fa68ab959d
2 changed files with 5 additions and 3 deletions

View File

@ -19,12 +19,13 @@ TARGET := boot
BUILD := build BUILD := build
SOURCES := source source/libwiigui source/images source/fonts source/sounds source/libwbfs SOURCES := source source/libwiigui source/images source/fonts source/sounds source/libwbfs
INCLUDES := source INCLUDES := source
SVNDEV := -D'SVN_REV="$(shell svnversion -n ..)"'
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE) CFLAGS = -g -O2 -Wall $(SVNDEV) $(MACHDEP) $(INCLUDE)
CXXFLAGS = -save-temps -Xassembler -aln=$@.lst $(CFLAGS) CXXFLAGS = -save-temps -Xassembler -aln=$@.lst $(CFLAGS)
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map,--section-start,.init=0x80a00100 LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map,--section-start,.init=0x80a00100

View File

@ -212,7 +212,8 @@ static void WindowCredits(void * ptr)
txt[i] = new GuiText(LANGUAGE.Credits, 26, (GXColor){255, 255, 255, 255}); txt[i] = new GuiText(LANGUAGE.Credits, 26, (GXColor){255, 255, 255, 255});
txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,12); i++; txt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); txt[i]->SetPosition(0,12); i++;
txt[i] = new GuiText("V 1 .0", 18, (GXColor){255, 255, 255, 255}); char SvnRev[10] = ""; sprintf(SvnRev, "r%s", SVN_REV);
txt[i] = new GuiText(SvnRev, 18, (GXColor){255, 255, 255, 255});
txt[i]->SetAlignment(ALIGN_RIGHT, ALIGN_TOP); txt[i]->SetPosition(0,y); i++; y+=34; txt[i]->SetAlignment(ALIGN_RIGHT, ALIGN_TOP); txt[i]->SetPosition(0,y); i++; y+=34;
txt[i] = new GuiText("USB Loader GX", 24, (GXColor){255, 255, 255, 255}); txt[i] = new GuiText("USB Loader GX", 24, (GXColor){255, 255, 255, 255});