Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
added version string
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartie95 committed Oct 12, 2015
1 parent 0191275 commit 608707f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ static const std::string globalSettingsFileName = "settings";

static const std::string versionCheckUrl = "http://fmp.hartie95.de/version.txt";
static const u32 version=0x006050;
static const std::string versionString = "0.6-Beta2";
static const std::string versionString = "v0.6-Beta2";

7 changes: 3 additions & 4 deletions source/menuManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ string checkFirmwareVersion()
string checkKernelVersion()
{
std::stringstream stream;
/*stream << "uk";
stream << (u32)kernelversion.unknown;*/
stream << "kernel: ";
stream << (u32)device.kernelversion.major;
stream << ".";
Expand All @@ -183,7 +181,7 @@ string checkKernelVersion()

void MenuManager::drowTop()
{
string debugOutput = "Model: " + getModel() + checkKernelVersion()+checkFirmwareVersion();// +checkFirmwareVersion();
string debugOutput = "Model: " + getModel() + checkKernelVersion()+checkFirmwareVersion();
const string title = "Free Multi Patcher by hartie95";
const string credit = "based on Ygw eshop spoofer by felipejfc";
stringstream usageStream;
Expand All @@ -200,7 +198,8 @@ void MenuManager::drowTop()
gpuViewport(TOP_SCREEN, 0, 0, TOP_WIDTH, TOP_HEIGHT);
gputOrtho(0, TOP_WIDTH, 0, TOP_HEIGHT, -1, 1);
gpuClearColor(0xFF, 0xFF, 0xFF, 0xFF);
gputDrawString(debugOutput, (gpuGetViewportWidth() - gputGetStringWidth(debugOutput, 8)) / 2, (gpuGetViewportHeight() - gputGetStringHeight(debugOutput, 8)) / 2 + 50, 8, 8, 0, 0, 0);
gputDrawString(versionString, 5, gpuGetViewportHeight() -10, 8, 8, 0, 0, 0);
gputDrawString(debugOutput, (gpuGetViewportWidth() - gputGetStringWidth(debugOutput, 8)) / 2, (gpuGetViewportHeight() - gputGetStringHeight(debugOutput, 8)) / 2 + 50, 8, 8, 10, 10, 10);
gputDrawString(title, (gpuGetViewportWidth() - gputGetStringWidth(title, 12)) / 2, (gpuGetViewportHeight() - gputGetStringHeight(title, 12))/2+25, 12, 12, 0 , 0 , 0);
gputDrawString(credit, (gpuGetViewportWidth() - gputGetStringWidth(credit, 8)) / 2, (gpuGetViewportHeight() - gputGetStringHeight(credit, 8))/2+12, 8, 8, 0, 0, 0);
gputDrawString(usage, (gpuGetViewportWidth() - gputGetStringWidth(usage, 8)) / 2, (gpuGetViewportHeight() - gputGetStringHeight(usage, 8))/2-75, 8, 8, 0 , 0 , 0);
Expand Down

0 comments on commit 608707f

Please sign in to comment.