Skip to content

Commit

Permalink
Version 0.1.3 in Makefile. Updated default/temp os config to new stan…
Browse files Browse the repository at this point in the history
…dard.
  • Loading branch information
Neonkoala authored and Neonkoala committed Nov 6, 2010
1 parent b12fb89 commit 64c5646
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion openiboot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ LIBRARIES += -lgcc -nostdlib
INC += -Iincludes
CFLAGS += -Wall -Werror
LDFLAGS += -Ttext=$(LOAD) --nostdlib
VERSION = "0.1.2"
VERSION = "0.1.3"
COMMIT = $(shell git log | head -n1 | cut -b8-14)
BUILD = "$(COMMIT)"
CFLAGS += -DOPENIBOOT_VERSION=$(VERSION) -DOPENIBOOT_VERSION_BUILD=$(BUILD)
Expand Down
6 changes: 3 additions & 3 deletions openiboot/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ int menu_setup(int timeout, int defaultOS) {
framebuffer_setloc(0, 0);

switch(defaultOS){
case 0:
case 1:
Selection = MenuSelectioniPhoneOS;
break;
case 1:
case 2:
Selection = MenuSelectionAndroidOS;
break;
case 2:
case 3:
Selection = MenuSelectionConsole;
break;
default:
Expand Down
20 changes: 9 additions & 11 deletions openiboot/openiboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,12 @@ void OpenIBootStart() {
defaultOS = parseNumber(sDefaultOS);
if(sTempOS)
tempOS = parseNumber(sTempOS);
if(tempOS!=defaultOS) {

if(tempOS>0) {
switch (tempOS) {
case 0:
case 1:
framebuffer_clear();
bufferPrintf("Loading iOS...");
reset_tempos(sDefaultOS);
reset_tempos();
Image* image = images_get(fourcc("ibox"));
if(image == NULL)
image = images_get(fourcc("ibot"));
Expand All @@ -101,10 +100,10 @@ void OpenIBootStart() {
chainload((uint32_t)imageData);
break;

case 1:
case 2:
framebuffer_clear();
bufferPrintf("Loading iDroid...");
reset_tempos(sDefaultOS);
reset_tempos();
#ifndef NO_HFS
#ifndef CONFIG_IPOD
radio_setup();
Expand All @@ -124,14 +123,13 @@ void OpenIBootStart() {
#endif
break;

case 2:
case 3:
framebuffer_clear();
bufferPrintf("Loading Console...");
reset_tempos(sDefaultOS);
reset_tempos();
hideMenu = "1";
break;
}

} else if(hideMenu && (strcmp(hideMenu, "1") == 0 || strcmp(hideMenu, "true") == 0)) {
bufferPrintf("Boot menu hidden. Use 'setenv opib-hide-menu false' and then 'saveenv' to unhide.\r\n");
} else {
Expand Down Expand Up @@ -511,10 +509,10 @@ static int load_multitouch_images()
return 1;
}

static void reset_tempos(char* sDefaultOS)
static void reset_tempos()
{
framebuffer_setdisplaytext(FALSE);
nvram_setvar("opib-temp-os",sDefaultOS);
nvram_setvar("opib-temp-os","0");
nvram_save();
framebuffer_setdisplaytext(TRUE);
}

0 comments on commit 64c5646

Please sign in to comment.