changed the headless mode to only use argv[1] if it has strlen==6 so it

just ignores seldelf's args

add Settings.godmode to the end of the theme URL so you can see boobies
if the loader is unlocked
This commit is contained in:
giantpune 2009-12-13 10:20:11 +00:00
parent 66b367c6a6
commit 3fd924f3c0
4 changed files with 11 additions and 8 deletions

View File

@ -2,8 +2,8 @@
<app version="1"> <app version="1">
<name> USB Loader GX</name> <name> USB Loader GX</name>
<coder>USB Loader GX Team</coder> <coder>USB Loader GX Team</coder>
<version>1.0 r861</version> <version>1.0 r862</version>
<release_date>200912130902</release_date> <release_date>200912130940</release_date>
<short_description>Loads games from USB-devices</short_description> <short_description>Loads games from USB-devices</short_description>
<long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times. <long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times.
The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller. The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.

View File

@ -423,7 +423,8 @@ main(int argc, char *argv[]) {
//its not really a headless mode. more like hairless. //its not really a headless mode. more like hairless.
if (argc > 1 && argv[1]) if (argc > 1 && argv[1])
{ {
strncpy(headlessID, argv[1], sizeof(headlessID)); if (strlen(argv[1])==6)
strncpy(headlessID, argv[1], sizeof(headlessID));
} }
//! Init the rest of the System //! Init the rest of the System

View File

@ -145,10 +145,8 @@ int MenuCheck() {
//Spieleliste laden //Spieleliste laden
__Menu_GetEntries(0); __Menu_GetEntries(0);
//THIS SHIT MAKES THE LOADER NOT RUN FROM SENDELF if (strcmp(headlessID,"")!=0)
//Think of something else pune. menu = MENU_EXIT;
//if (strcmp(headlessID,"")!=0)
//menu = MENU_EXIT;
if (menu == MENU_NONE) if (menu == MENU_NONE)
menu = MENU_DISCLIST; menu = MENU_DISCLIST;

View File

@ -22,6 +22,7 @@
#include "sys.h" #include "sys.h"
#include "network/http.h" #include "network/http.h"
#include "ZipFile.h" #include "ZipFile.h"
#include "gecko.h"
/*** Extern functions ***/ /*** Extern functions ***/
extern void ResumeGui(); extern void ResumeGui();
@ -127,6 +128,7 @@ bool DownloadTheme(const char *url, const char *title)
static void Theme_Prompt(const char *title, const char *author, GuiImageData *thumbimageData, const char *downloadlink) static void Theme_Prompt(const char *title, const char *author, GuiImageData *thumbimageData, const char *downloadlink)
{ {
gprintf("\nTheme_Prompt(%s ,%s, <DATA>, %s)",title,author,downloadlink);
bool leave = false; bool leave = false;
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, Settings.sfxvolume); GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, Settings.sfxvolume);
@ -261,7 +263,9 @@ int Theme_Downloader()
int menu = MENU_NONE; int menu = MENU_NONE;
bool listchanged = false; bool listchanged = false;
const char THEME_LINK[70] = "http://wii.spiffy360.com/themes.php?xml=1&category=1&adult=0"; char THEME_LINK[70];
sprintf(THEME_LINK, "http://wii.spiffy360.com/themes.php?xml=1&category=1&adult=%d", Settings.godmode);
//gprintf("\nTHEME_LINK: %s", THEME_LINK);
//const char THEME_LINK_ADULT[70] = "http://wii.spiffy360.com/themes.php?xml=1&category=1&adult=1"; //const char THEME_LINK_ADULT[70] = "http://wii.spiffy360.com/themes.php?xml=1&category=1&adult=1";
/*** Sound Variables ***/ /*** Sound Variables ***/