mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-26 05:04:16 +01:00
* robbed homebrewboot stuff from wiixplorer
This commit is contained in:
parent
5bc9cee195
commit
95745a23cb
@ -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 r941</version>
|
<version>1.0 r942</version>
|
||||||
<release_date>201009160837</release_date>
|
<release_date>201009161115</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.
|
||||||
|
7
Makefile
7
Makefile
@ -96,6 +96,7 @@ TTFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ttf)))
|
|||||||
PNGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.png)))
|
PNGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.png)))
|
||||||
OGGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ogg)))
|
OGGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ogg)))
|
||||||
PCMFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcm)))
|
PCMFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcm)))
|
||||||
|
DOLFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.dol)))
|
||||||
MP3FILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.mp3)))
|
MP3FILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.mp3)))
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@ -110,7 +111,7 @@ endif
|
|||||||
export OFILES := $(addsuffix .o,$(BINFILES)) \
|
export OFILES := $(addsuffix .o,$(BINFILES)) \
|
||||||
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \
|
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \
|
||||||
$(sFILES:.s=.o) $(SFILES:.S=.o) \
|
$(sFILES:.s=.o) $(SFILES:.S=.o) \
|
||||||
$(TTFFILES:.ttf=.ttf.o) $(PNGFILES:.png=.png.o) \
|
$(TTFFILES:.ttf=.ttf.o) $(PNGFILES:.png=.png.o) $(addsuffix .o,$(DOLFILES))\
|
||||||
$(OGGFILES:.ogg=.ogg.o) $(PCMFILES:.pcm=.pcm.o) $(MP3FILES:.mp3=.mp3.o) \
|
$(OGGFILES:.ogg=.ogg.o) $(PCMFILES:.pcm=.pcm.o) $(MP3FILES:.mp3=.mp3.o) \
|
||||||
$(addsuffix .o,$(ELFFILES))
|
$(addsuffix .o,$(ELFFILES))
|
||||||
|
|
||||||
@ -198,6 +199,10 @@ language: $(wildcard $(PROJECTDIR)/Languages/*.lang)
|
|||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
|
%.dol.o : %.dol
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@bin2s -a 32 $< | $(AS) -o $(@)
|
||||||
|
|
||||||
%.ttf.o : %.ttf
|
%.ttf.o : %.ttf
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
@ -1,18 +1,13 @@
|
|||||||
#ifndef _BOOTHOMEBREW_H_
|
#ifndef _BOOTHOMEBREW_H_
|
||||||
#define _BOOTHOMEBREW_H_
|
#define _BOOTHOMEBREW_H_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int BootHomebrew(char * path);
|
int BootHomebrew(char * path);
|
||||||
int BootHomebrewFromMem();
|
int BootHomebrewFromMem();
|
||||||
void CopyHomebrewMemory(u32 read, u8 *temp, u32 len);
|
void CopyHomebrewMemory(u32 read, u8 *temp, u32 len);
|
||||||
int AllocHomebrewMemory(u32 filesize);
|
int AllocHomebrewMemory(u32 filesize);
|
||||||
void FreeHomebrewBuffer();
|
void FreeHomebrewBuffer();
|
||||||
|
void AddBootArgument(const char * argv);
|
||||||
#ifdef __cplusplus
|
extern u32 homebrewsize;
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -879,6 +879,7 @@ int MenuHomebrewBrowse() {
|
|||||||
uLongf f = uncfilesize;
|
uLongf f = uncfilesize;
|
||||||
error = uncompress(unc, &f, temp, infilesize) != Z_OK;
|
error = uncompress(unc, &f, temp, infilesize) != Z_OK;
|
||||||
uncfilesize = f;
|
uncfilesize = f;
|
||||||
|
homebrewsize = uncfilesize;
|
||||||
|
|
||||||
free(temp);
|
free(temp);
|
||||||
temp = unc;
|
temp = unc;
|
||||||
@ -887,6 +888,7 @@ int MenuHomebrewBrowse() {
|
|||||||
|
|
||||||
if (!error && strstr(filename,".zip") == NULL) {
|
if (!error && strstr(filename,".zip") == NULL) {
|
||||||
innetbuffer = temp;
|
innetbuffer = temp;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -899,6 +901,7 @@ int MenuHomebrewBrowse() {
|
|||||||
if (strstr(filename,".dol") || strstr(filename,".DOL")
|
if (strstr(filename,".dol") || strstr(filename,".DOL")
|
||||||
|| strstr(filename,".elf") || strstr(filename,".ELF")) {
|
|| strstr(filename,".elf") || strstr(filename,".ELF")) {
|
||||||
boothomebrew = 2;
|
boothomebrew = 2;
|
||||||
|
AddBootArgument( filename );
|
||||||
menu = MENU_EXIT;
|
menu = MENU_EXIT;
|
||||||
CloseConnection();
|
CloseConnection();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user