Commit Graph

84 Commits

Author SHA1 Message Date
e.bovendeur
e8f5ab07bd * Changed WBFS stuff to C++ classes
* Fixed bug in http.c (where realloc *might* choose another address, thanks Dr. Clipper)
* Added support to /wbfs/Game Title [GAMEID].wbfs files (thanks oggzee)
* Fixed bug in cfg_cleanup when switching partitions
* Added BGM class again (for playing background music, requested by dimok)
* Added settings for background music again
* Fixed bug in MEM2 class (returning an invalid handle when no memory could be allocated, thanks to dimok)
* Updated DIP module to OpenDIP (report bugs with this one if you've found them, but report them here: http://github.com/spacemanspiff/odip-plugin)
* Added initial code for cios 222 rev5 (THIS DOES NOT WORK YET! DON'T FILE BUGS ON THIS ONE!)
* Added fatffs module by Hermes and Waninkoko (THIS DOES NOT WORK YET! DON'T FILE BUGS ON THIS ONE!)
* Fixed bug in Settings, which resulted in a crash when the partition was changed.
* Added caching for gamelist entries, so switching between different screens/sort options/display modes should be faster
* Changed defines in ehc_module, in order to prevent clashes with new defines in rev5
2010-02-14 23:22:52 +00:00
giantpune
bf03e49dc6 undo the code formatting. somehow it got screwed up 2010-02-09 10:59:55 +00:00
giantpune
f988afc60d code formatting. absolutely no functional changes. there is no point to update to this. just making the code easier to read. 2010-02-09 06:33:18 +00:00
dimok321
3f9cdb5468 *Revert to R883 and only keeping the new game directory layouts commited by r-win
*Moved R896 to the branch
2010-01-19 10:48:50 +00:00
dimok321
d16ba4ed6c *Fix for startup problems. Especially for those with wiitdb.
*Startup is now using libogc usbstorage for loading configs
*Improved storing gametitles from wiitdb with less memory usage
*Added freeing of the memory allocated for wiitdb titles (oh boy)
*Changed wiitdb.zip search
2010-01-17 23:59:59 +00:00
dimok321
ca9455aa53 *First attempt to fix the weird startup problems and wiitdb issue (Testversion 3) 2010-01-17 09:49:26 +00:00
dimok321
c7fc442724 *Lots of fixes, like Issue 1330 and Issue 1224
I can't remember which one are fixed so please check if your issue is fixed and report.
2010-01-07 18:20:26 +00:00
dimok321
604ecb7b79 *Some fixes for those who were having troubles with the new revs 2010-01-07 08:35:11 +00:00
dimok321
15bcbfa482 *Finished the background initialization thread for devices started by giantpune and merged it into trunk. Now you can startup the loader without a HDD. Also you can put in your device after startup and it will be recognized. Hot swapping not yet added (as in remove and than stick it in).
You will see the list of available channels on your system if you start without a HDD or if your HDD is slow and is being recognized late. The list of games is than reloading as soon as it is recognized.
*Hot swapping of the SD card was implemented into background thread (by giantpune)
*Made lots of cleanups and some fixes
*Format menu was moved to settings page 3 (only on godmode accessable)
*Added ScreenShot and Reset/Shutdown call to background thread. Removed the not needed ones. Now you can call for Screenshot/Reset/Shutdown anywhere in the loader (after gui is started).
2010-01-06 23:07:35 +00:00
giantpune
26a5d9c9de take out the printf about the IOS236 because im tired of people asking what the hell it is 2010-01-03 17:05:31 +00:00
giantpune
b5653edcf4 *fix bug in partition detection (at least for my HDD)
USB must deinit the device before re initting it or else it returns 0
games and what not.

*add filter to skip __CFG_ in teh gamelist (i was told this is the ID6
for hermes' settings)
2009-12-30 09:52:24 +00:00
giantpune
999e8c1817 *add a little debug text after the GUI if loaded from HBC to help track
down the ocarina issues

*take the IOS reload out of the slow usb loop

*use patchhook.S from new geckoOS.  this doesnt mean all the new geckoOS
stuff will work, its just the S file
2009-12-24 08:33:53 +00:00
giantpune
cb628348d6 *fix possible buffer overflow in GCT code array
*fix the gamelist from starting with 1 game on the list
*added fucntion for making screenshots and put it in a few loops. 
triggers are GC(Z), CC(left-Z), nunchuk(Z).  no comfirmation is given
except over usb gecko.  but files are saved in <boot device>/config/
USBLoader_GX_screenshot<date><time>.png
*took out some annoying prompts from the bannersound functions because
they were really annoying
2009-12-20 04:26:30 +00:00
e.bovendeur
27024a9ad1 Added changed libwbfs by oggzee. 2009-12-19 15:47:12 +00:00
e.bovendeur
3aa838dec9 * Added initial NTFS support
* Added load system based on fragments

This commit is made possible for Oggzee and his great work on supporting other filesystems!
2009-12-19 14:05:31 +00:00
giantpune
127db3f4b2 add fixes from brincraig (issue 1191) 2009-12-15 08:39:45 +00:00
giantpune
3fd924f3c0 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
2009-12-13 10:20:11 +00:00
giantpune
8732c83f11 *probably fix the bug that caused WiiTDB.zip to not update the full
gamelist.
*rearrange the Gui_Numpad so it doesnt look like a 4yr old made it :)
*remove redundant setPostion and setAlignment in Gui_Numpad
*remove old comments
2009-12-11 23:07:27 +00:00
giantpune
f6ad587532 *change "or" to "and" for the IOS check
*rearrange some sd and usb init to keep from re-init the thing 20 times
*execute some of the main dol patches that are the same size in the same
loop so we dont keep looping the same data a bunch if we dont need to
(hopefully this doesnt break anything)
*sprinkle some more gpringf() around
2009-12-10 23:05:32 +00:00
e.bovendeur
441a203678 * Added BETA upgrades option (to download the latest revisions from google code)
* Added Wii Parental Control support
* Added gui numpad
* Changed GuiText to support password character
* Added lock/unlock icon in the titlebar (to unlock Parental Control)
* Added new wbfs_fat from Oggzee (further speed improvement)
2009-12-10 20:27:36 +00:00
e.bovendeur
efcc00b66b * Added WII_Initialize call to IOS_ReloadIOSsafe to prevent DSI exception when calling WII_LaunchTitle
* Fixed check for valid cioses
* Removed gprintf from MEM2
2009-12-05 08:06:05 +00:00
e.bovendeur
2543c555a4 Lots of changes in this revision:
* Added MEM2 support by Hibern
* Better partition support (by oggzee)
* Support for subdirectories in FAT32 (by oggzee)
* Added support for cios 223 and 250
* Added BCA support (go to Settings->Custom Paths) to change the path of the BCA files (by Hermes)
* Fixed issue with hairless mode
* Fixed issue with IOS_ReloadIOSsafe (by giantpune)
* Added setting to save games in a subdirectory
* Fixed slow startup when loading from FAT (WiiTDB required!)
* Changed handling of new titles a bit (speed improvement)

Known issue:
* FAT rename and re-id broken again due to subdirectory support (yes, I'm lazy)
2009-12-04 15:05:20 +00:00
giantpune
d14bebd159 fix code dump when using hairless mode and FAT32 2009-12-03 06:13:23 +00:00
giantpune
55a401e4a5 lots of changes here
changed gprintf() to use crediar's method because it is smaller and works just the same.

allow r-win's debug printf() stuff to be sent to the gecko to reduce redundant stuff there 

issue 1073.  headless mode - allow game to be booted via argv[1].

took out all the params from the exitprompt since they aren't used.

took out all the #ifdef stuff for building for a wii.  obviously this wont run on a gamecube so it isn't needed.

added a way to check what version of a IOS is installed before trying to boot into it.  added IOS_ReloadIOSsafe(). this should stop idiots with the 4.2 stubs from bitching about why stuff doesn't work.

use that check so you only see the "222v4 is needed" prompt in the settings if you don't already have that installed.

fix issue 1039. (must still be compiled without NO_DEBUG defined because technically WiiRD is a debugger)
2009-12-03 01:06:09 +00:00
e.bovendeur
8b3754ef3f - Changed svnrev.sh script to autoupdate meta.xml
- Fixed the build for the full channel build
- Reverted the default cios change
- Changed the error002 to default Anti (this only affects new users)
2009-11-17 22:57:41 +00:00
dimok321
626c79ea2d *Added the custom libfat source to our source so you don't need to replace the original one in libogc
*Added NewSuperMarioBrosPatch for NTSC Version
2009-11-15 21:30:44 +00:00
e.bovendeur
a09abe355f * Added FAT support (Issue 1054)
* Fixed issue 1058
* Menus splitted to several smaller files, to reduce compile time

This version has FAT support. You can change the used partition in the game load options. Default WBFS will be used, if found. Otherwise the first FAT partition with games will be used. FAT will only work when using Hermes cios (222/223)!!!
2009-11-15 19:52:58 +00:00
giantpune
b753af6d4d sprinkled gprintf() throughout the source some more.
added functions to mess with the "return to" stub.  everything should be working right, but if i messed up, it may cause you not to be able to exit the program (it could just keep restarting itself).  now when booting homebrew, they should exit back to this program if you have a channel installed as UNEO or ULNR.  priority is given to UNEO if both are present.
2009-10-20 23:00:19 +00:00
giantpune
6a378e3523 added basic functions for outputting debug info to USB gecko 2009-10-20 11:46:55 +00:00
ardi@ist-einmalig.de
31cd4d03e2 revert dimok's stuff, because it makes too many trubble 2009-10-19 20:34:54 +00:00
dimok321
3c6bf6523b Optimization Changes Part 1:
*Lots of changes in the TextDrawing stuff and FreeTypeGX to speed up the drawing
*Mostly optimization work which is not completely done yet, but mainly it is.
*You might not want to update to this revision right away there still might be bugs which are needed to be fixed. This is a version for everyone to test and report bugs caused by the changes.
*Vanishing WiiMotePointer should be fixed for the Settings/GameSettings probably (though it might still occur i am not sure if i didn't forget anything, there is just too much to change :P.
2009-10-17 20:48:52 +00:00
ardi@ist-einmalig.de
7ddd8aee25 fix missing utf-8 support with devkitPPC r18 2009-10-15 14:13:13 +00:00
lustar.mii
51459465bc Added more alt-dol selection prompts for known games that require different settings to access all the content.
All options pages now contain the correct number of lines, which together with another adjustment should fix scrollbar alignment (issue 971).
Added missing scrollbar on custom paths page.
dimok fixed the file browser bug that prevented going back to the parent folder if the current folder was empty (issue 836).
Fixed parental control keyboard bug introduced in r750 (issue 976).
The free space text is now in correct order when the GUI is set to Japanese.
2009-10-04 09:48:03 +00:00
e.bovendeur
1cc7d3acd6 * Added initial support for the new wiiload (compressed protocol), uncompressed protocol is also supported
* Added initial (untested!) support for the zip file format, which is supported by the HBC
* Began working on compressed wad files. Uncompressing fails for now, so uploading WAD files should be done with the previous version of Wiiload.
* Fixed issue 902 (hence the large commit).
2009-09-30 23:10:58 +00:00
lustar.mii
b83a379014 The mload/ehcmodule update is now complete, thanks to dimok. You need to update Hermes cIOS 222/223 to v4 if you use it because it works the same as in uloader, only v4 is supported.
You may have to delete your main configuration file before updating if you had v3 installed. For some games, you will have to use 222 instead of 223 (RB instruments, GH 5) if you had 222 v3.
If you think you need an external ehcmodule.elf, you can put it in SD:/apps/usbloader_gx/ and it will be loaded.

Fixed crash when setting a custom path using the folder button (issue 864).
Fixed black screen when starting the loader from HBC a long time after powering the Wii and the HDD went to sleep (tested on a WD 2,5") (possible fix for issue 881).
2009-09-30 03:57:15 +00:00
giantpune
4b361ab3ab put a stupid picture showing the stupid people what stupid USB port to plug in their stupid HDD. issue 941 2009-09-19 10:38:21 +00:00
ardi@ist-einmalig.de
88642ac01b Fix the "Waiting for your slow HDD" Timer-Bug (see Issue 850) 2009-08-19 22:25:42 +00:00
satellic
ac175e1d07 tr() was taken off from main.cpp (translations from this file not loaded)
Language files updated
2009-08-06 11:09:20 +00:00
satellic
7158965f7f * Latest languages files updated
* Add some translations wich was forgotten in source
2009-08-04 14:30:26 +00:00
dimok321
de01dd2a18 *Small fix. The Menu i did didnt show up lol.
*Small change in the sh file because there was an error on linux while compiling.
2009-07-31 21:16:02 +00:00
dimok321
06889b794a *Moved file receiving over TCP to TitleBrowser (Channel Browser)
*Fixed the receiving of the wads. Now receiving directly to a device (Big files work now too (with sendelf they do, do not know about wiiload))

*Fixed to show the incoming IP and not the IP of the Wii

*Made changes on bootup. Now there is a small BootUp Screen for the slow HDD people. Waiting for 30Secs for their HDD.
2009-07-31 20:15:55 +00:00
giantpune
30535c6f5d *code beautification*
formatted the code to make it easier to read.  no functional changes at all.

i didn't put anything from the libwiigui folder or banner folder in the beautifier.

my automated .bat seems to have done a good job.  the only places i see it fucked up was on (GXColor){blablabla}.  it treated the brackets in the color like all the other brackets and put the color on a new line and indented it.  i think i fixed most of them.  not sure if it messed up anywhere else.  also not sure about how it handled different linebreaks.  it looks fine on windows.  if it looks messed up on linux, it can be reverted.

the code still compiles and runs fine.
2009-07-30 05:41:12 +00:00
dimok321
1b9a56b877 *Added button to update/download all language files in the Language selection. The files are downloaded into the setuped path for languages.
*Added URL_List class that gets all Links of an http url.

*Made HomebrewList class dynamic allocated like the URL_List class too now. This saves lots of unused memory.

*Small cleanups

NOTE: Punes made an update too (i didnt know he was doing it). We decided to have both in because of:

Punes update updates only the files that are available on the SD/USB and only when you are doing a complete update.

My update is downloading ALL files from the SVN Link (getting the whole list). These is mainly for people that are getting started or those who want to update the whole LanguageList
2009-07-29 20:32:14 +00:00
giantpune
8ed332bde7 fix the screensaver coming on when you press power on the wiimote... again.
added check for GXglobal.cfg on the USB at startup.  now if anny of the following are met, it will cause USB to be used as your bootDevice:

argv[0] gets passed on startup and it is usb

any of these files are on your USB drive.
USB:/config/GXglobal.cfg || USB:/apps/usbloader_gx/boot.elf || USB:/apps/usbloadergx/boot.dol || USB:/apps/usbloadergx/boot.elf || USB:/apps/usbloader_gx/boot.dol
2009-07-28 17:22:03 +00:00
dimok321
2039a47250 *little change to the bootup (might fix some startup problems) 2009-07-28 16:44:19 +00:00
giantpune
d32d1aa6f6 2009-07-28 03:16:25 +00:00
giantpune
57f0ce0ed4 Added functions/vars to GuiText to allow showing & hiding rows when it is wrapped.
new vars are
firstLine = 1;
numLines = -1;
totalLines = 1;
totalLines is not changed until the text is set to wrap and Draw() is called 1 time.
The other 2 are set with functions.
new functions are
void GuiText::SetNumLines(int n)
void GuiText::SetFirstLine(int n)
int GuiText::GetNumLines()
int GuiText::GetFirstLine()
int GuiText::GetTotalLines()
int GuiText::GetLineHeight(int n) 
These should be self explanatory. GetLineHeight relies on total lines so it needs to be called after the first Draw();
Raised the chars[] to 3000 for the synopsis because people are writing books in there.
Used those new fancy functions make the synopsis fit in the info window.  Press up/down to scroll the text.  Arrows may come later for the buttons.  Also put a home buttononlytrigger on the game prompt.  moved disable mainWindow to the beginning of the infoprompt to keep from loading images and stuff from the sd at the same time we are reading the xml file.
2009-07-13 11:19:31 +00:00
giantpune
9b46eb613a apply flipX settings to gamewall and carousel, fix screensaver bug to keep it from coming on when it is turned off. added support for updating full channel. in order to make the full channel updatable, comment/remove "#define NOTFULLCHANNEL" from promptwindow.h. also there must be a wad to update to (saved as a txt file) on the update server. for some reason the ticket was corrupted when it was stored as a wad.
also there are 6 compile warnings from the conversion of wad.c to .cpp but everything still works and installs fine.
2009-07-11 05:55:29 +00:00
dimok321
7b2454befd *Added a Setting to disable FAT/FAT32 Support for USB 2nd Partitions
NOTE: This option is ONLY for those who have problems with their HDDs being detected. With this disabled you shouldn't get weird lists where all Games are the same or no Games at all.
2009-07-05 23:01:29 +00:00
dimok321
79a7fd9017 *Changed whole GameInstall ProgressWindow behaviour
This should fix the weird freezes and crashes while
 installing. The ProgressWindow is now in its own thread
 and updates the values fast again.

*Added Speed to InstallProgressWindow
 Lets see who got the fastest WiiDiskDrive :P (i got up to 5.8MB/s)
2009-07-05 20:22:29 +00:00