Skip to content

Commit

Permalink
added popsloader version display
Browse files Browse the repository at this point in the history
  • Loading branch information
hrimfaxi committed Jun 30, 2011
1 parent 5d761d0 commit fbc293a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions popsloader/common/popsloader.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef POPSLOADER_H
#define POPSLOADER_H

#define POPSLOADER_VERSION_STR "New popsloader v1"

struct popsloader_config {
u32 pops_fw_version;
};
Expand Down
3 changes: 3 additions & 0 deletions popsloader/loader/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <psppower.h>
#include "utils.h"
#include "main.h"
#include "popsloader.h"

struct MenuItem {
char *name;
Expand Down Expand Up @@ -124,6 +125,8 @@ void menu_draw(struct Menu *menu)

set_screen_xy((MAX_SCREEN_X - strlen(menu->banner)) / 2, 2);
printf("%s\n", menu->banner);
set_screen_xy((MAX_SCREEN_X - strlen(POPSLOADER_VERSION_STR)) / 2, 3);
printf("%s\n", POPSLOADER_VERSION_STR);

for(i=0; i<menu->size; ++i) {
set_screen_xy((MAX_SCREEN_X - strlen(menu->items[i].name)) / 2, 5 + i);
Expand Down

0 comments on commit fbc293a

Please sign in to comment.