Skip to content

Commit

Permalink
added and bumped version string on main view
Browse files Browse the repository at this point in the history
  • Loading branch information
dimok789 committed Apr 22, 2016
1 parent 3a574c3 commit e720a44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extern "C" {

#include "os_defs.h"

#define HBL_VERSION "v0.1"
#define HBL_VERSION "v1.2"

#define CAFE_OS_SD_PATH "/vol/external01"
#define SD_PATH "sd:"
Expand Down
5 changes: 5 additions & 0 deletions src/menu/HomebrewWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ HomebrewWindow::HomebrewWindow(int w, int h)
, arrowLeftImage(arrowLeftImageData)
, arrowRightButton(arrowRightImage.getWidth(), arrowRightImage.getHeight())
, arrowLeftButton(arrowLeftImage.getWidth(), arrowLeftImage.getHeight())
, hblVersionText("Homebrew Launcher " HBL_VERSION " by Dimok", 32, glm::vec4(1.0f))
, touchTrigger(GuiTrigger::CHANNEL_1, GuiTrigger::VPAD_TOUCH)
, wpadTouchTrigger(GuiTrigger::CHANNEL_2 | GuiTrigger::CHANNEL_3 | GuiTrigger::CHANNEL_4 | GuiTrigger::CHANNEL_5, GuiTrigger::BUTTON_A)
, buttonLTrigger(GuiTrigger::CHANNEL_ALL, GuiTrigger::BUTTON_L | GuiTrigger::BUTTON_LEFT, true)
Expand Down Expand Up @@ -158,6 +159,10 @@ HomebrewWindow::HomebrewWindow(int w, int h)
arrowRightButton.clicked.connect(this, &HomebrewWindow::OnRightArrowClick);
append(&arrowRightButton);
}

hblVersionText.setAlignment(ALIGN_BOTTOM | ALIGN_RIGHT);
hblVersionText.setPosition(-30, 30);
append(&hblVersionText);
}

HomebrewWindow::~HomebrewWindow()
Expand Down
1 change: 1 addition & 0 deletions src/menu/HomebrewWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class HomebrewWindow : public GuiFrame, public sigslot::has_slots<>
GuiImage arrowLeftImage;
GuiButton arrowRightButton;
GuiButton arrowLeftButton;
GuiText hblVersionText;

typedef struct
{
Expand Down

0 comments on commit e720a44

Please # to comment.