From fd4781cad9fda72c49854e330a54231566283ad7 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 11 Nov 2012 22:49:25 +0100 Subject: [PATCH] some minor changes --- installer/wad/0001000154484246.tmd | Bin 592 -> 592 bytes main/source/Menus/menu_main.cpp | 59 ++++++++++++++++++----------- main/source/Network/wifi_gecko.c | 2 +- main/source/main.cpp | 18 +-------- 4 files changed, 39 insertions(+), 40 deletions(-) diff --git a/installer/wad/0001000154484246.tmd b/installer/wad/0001000154484246.tmd index 11c535cd4b007a9e935a4698dee55d7cb1020dd4..3c9295170ae60f6686b36c799585eb9d6347ca9e 100644 GIT binary patch delta 34 scmV+-0Nwx41kePq76KOeAn2cy;S5I8+2@27jfT^`YyCOIxsxmcBq0wFzyJUM delta 34 scmV+-0Nwx41kePq76KObU 0 && temp_slide) Apps.SetEffect(Settings.Apps_from | EFFECT_SLIDE_IN, Options.slide_effect * 50); - // slide temporär aktivieren + // slide temporr aktivieren temp_slide = true; HaltGui(); @@ -668,11 +673,21 @@ int MenuMain() if(Options.wifigecko) WifiGecko_Connect(); - xprintf("The HomebrewFilter rev%i\n", SvnRev()); - usleep(1000); - xprintf("= == == == == == == == =\n"); - usleep(1000); - xprintf(" Wifi Gecko connected.\n\n"); + xprintf("The HomebrewFilter rev%i\n= == == == == == == == =\n Wifi Gecko connected.\n\n", SvnRev()); + + usleep(1500); + if(!check_uneek_fs()) + { + if(HAVE_AHBPROT) + { + runtimePatchApply(); + } + else + { + xprintf("Warning: no AHBPROT\n"); + } + } + DI2_Init(); // Init DVD first = true; } @@ -716,11 +731,11 @@ int MenuMain() menu = MENU_MAIN; } - // wenn A gedrückt + // wenn A gedrckt if(WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) || PAD_ButtonsDown(0) & PAD_BUTTON_A) button = "A"; - // wenn B gedrückt + // wenn B gedrckt if(WPAD_ButtonsDown(0) & (WPAD_BUTTON_B | WPAD_CLASSIC_BUTTON_B) || PAD_ButtonsDown(0) & PAD_BUTTON_B) button = "B"; @@ -815,7 +830,7 @@ int MenuMain() ResumeNetworkThread(); } - // eine Seite weiter bzw zurück + // eine Seite weiter bzw zurck else if((WPAD_ButtonsDown(0) & (WPAD_BUTTON_RIGHT | WPAD_CLASSIC_BUTTON_RIGHT) && !Options.navigation) || (WPAD_ButtonsDown(0) & (WPAD_BUTTON_PLUS | WPAD_CLASSIC_BUTTON_PLUS) && Options.navigation) || PAD_ButtonsDown(0) & PAD_BUTTON_RIGHT || rightBtn.GetState() == STATE_CLICKED || @@ -823,7 +838,7 @@ int MenuMain() (WPAD_ButtonsDown(0) & (WPAD_BUTTON_MINUS | WPAD_CLASSIC_BUTTON_MINUS) && Options.navigation) || PAD_ButtonsDown(0) & PAD_BUTTON_LEFT || leftBtn.GetState() == STATE_CLICKED) { - // Abbrechen Seite zurück + // Abbrechen Seite zurck if((WPAD_ButtonsDown(0) & (WPAD_BUTTON_RIGHT | WPAD_CLASSIC_BUTTON_RIGHT) && !Options.navigation) || (WPAD_ButtonsDown(0) & (WPAD_BUTTON_PLUS | WPAD_CLASSIC_BUTTON_PLUS) && Options.navigation) || PAD_ButtonsDown(0) & PAD_BUTTON_RIGHT || rightBtn.GetState() == STATE_CLICKED) @@ -870,7 +885,7 @@ int MenuMain() if(change) { - HaltResumeGui(); // -> um nur eine Seite zu blättern + HaltResumeGui(); // -> um nur eine Seite zu blttern // alten apps ausblenden if(Options.slide_effect > 0 && Settings.Apps_to != 0) @@ -914,7 +929,7 @@ int MenuMain() else AppsBtnFree->SetPosition(-1000, -1000); - // app 1 auf der aktuellen seite markieren, außer beim verschieben + // app 1 auf der aktuellen seite markieren, auer beim verschieben if(!grab) AppsBtn[(Settings.current_page-1)*apps_numers]->SetState(STATE_SELECTED); @@ -937,7 +952,7 @@ int MenuMain() menu = MENU_MAIN; } - // eine Kategorie zurück + // eine Kategorie zurck else if((WPAD_ButtonsDown(0) & (WPAD_BUTTON_MINUS | WPAD_CLASSIC_BUTTON_MINUS) && !Options.navigation) || (WPAD_ButtonsDown(0) & (WPAD_BUTTON_LEFT | WPAD_CLASSIC_BUTTON_LEFT) && Options.navigation) || PAD_ButtonsDown(0) & PAD_TRIGGER_L || minusBtn.GetState() == STATE_CLICKED) @@ -955,7 +970,7 @@ int MenuMain() menu = MENU_MAIN; } - // für die grid ansicht, navigation der einzelnen zellen + // fr die grid ansicht, navigation der einzelnen zellen previous_page = false; next_page = false; for(int i = 0; i< apps_numers/apps_row; i++) @@ -990,7 +1005,7 @@ int MenuMain() boothomebrew = true; menu = MENU_EXIT; } - if(choice == 2) // App Einfügen + if(choice == 2) // App Einfgen { string app_in_kategorie = AddApp(vechomebrew_list_choice[i].name.c_str()); if( app_in_kategorie != "NULL" ) @@ -1035,7 +1050,7 @@ int MenuMain() move.nr = i; move.page = Settings.current_page; - // Werte Move Button übergeben + // Werte Move Button bergeben icon_dataMove = new GuiImageData(vechomebrew_list_choice[i].icon); ViewIconMove = new GuiImage(icon_dataMove); @@ -1132,7 +1147,7 @@ int MenuMain() else AppsBtn[x]->SetPosition(pos_x[x], pos_y[x]); } - // buttons 1 größer button 2 + // buttons 1 grer button 2 else if(move.nr > move.nr_selected) { if(x < move.nr && x >= move.nr_selected) @@ -1182,7 +1197,7 @@ int MenuMain() AppVerschieben(Settings.category_name, AppOrdner1, vor, AppOrdner2); copy_app_in_category(); - // slide temporär deaktivieren + // slide temporr deaktivieren temp_slide = false; menu = MENU_MAIN; } diff --git a/main/source/Network/wifi_gecko.c b/main/source/Network/wifi_gecko.c index b3ca466..af37709 100644 --- a/main/source/Network/wifi_gecko.c +++ b/main/source/Network/wifi_gecko.c @@ -31,7 +31,7 @@ #include #include "xprintf.h" -#define DESTINATION_IP "10.0.0.6" +#define DESTINATION_IP "192.168.1.4" #define DESTINATION_PORT 4405 static int connection = -1; diff --git a/main/source/main.cpp b/main/source/main.cpp index e3d688d..56532f5 100644 --- a/main/source/main.cpp +++ b/main/source/main.cpp @@ -26,7 +26,6 @@ #include "Tools/FontSystem.h" #include "Tools/load.h" #include "Tools/load_channel.h" -#include "Tools/RuntimeIOSPatch.h" #include "Tools/save.h" #include "Tools/SelectIos.h" #include "Tools/throbber.h" @@ -41,8 +40,6 @@ #include "Neek/uneek_fs.h" #include "Neek/bootneek.h" -#define HAVE_AHBPROT ((*(vu32*)0xcd800064 == 0xFFFFFFFF) ? 1 : 0) - /*** Extern variables ***/ extern GuiWindow * mainWindow; extern GuiImageData * pointer; @@ -73,7 +70,7 @@ bool runaway = false; bool gecko_connected; bool in_neek; -// kopiere ios für app in einen vector +// kopiere ios fr app in einen vector void addAppIos(string foldername, int ios) { if(appios.size() == 0) @@ -229,19 +226,6 @@ main(int argc, char *argv[]) ResumeGui(); stretch(Settings.top, Settings.bottom, Settings.left, Settings.right); - if(!check_uneek_fs()) - { - if(HAVE_AHBPROT) - { - runtimePatchApply(); - } - else - { - xprintf("Warning: no AHBPROT\n"); - } - } - DI2_Init(); // Init DVD - if(strstr(Options.language, tr("STANDARD"))) translate();