From 6a484938f4390e78ed537aee68a7be3fe976cc09 Mon Sep 17 00:00:00 2001 From: dborth Date: Mon, 22 Mar 2010 21:18:07 +0000 Subject: [PATCH] add IOS display for diagnostics --- source/menu.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/menu.cpp b/source/menu.cpp index 0149d70..121db9a 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -787,7 +787,7 @@ static void WindowCredits(void * ptr) creditsBoxImg.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE); creditsWindowBox.Append(&creditsBoxImg); - int numEntries = 24; + int numEntries = 25; GuiText * txt[numEntries]; txt[i] = new GuiText("Credits", 30, (GXColor){0, 0, 0, 255}); @@ -850,6 +850,16 @@ static void WindowCredits(void * ptr) txt[i] = new GuiText("GNU General Public License (GPL) Version 2."); txt[i]->SetPosition(0,y); i++; y+=20; + char iosVersion[20]; + +#ifdef HW_RVL + sprintf(iosVersion, "IOS: %d", IOS_GetVersion()); +#endif + + txt[i] = new GuiText(iosVersion, 18, (GXColor){0, 0, 0, 255}); + txt[i]->SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM); + txt[i]->SetPosition(20,-20); + for(i=0; i < numEntries; i++) creditsWindowBox.Append(txt[i]);