Wiibrew dev corner: libupdate

Homebrew - libupdate - Image 1Wiibrew developer AlexLH has released libupdate for fellow developers. It’s a library that allows auto-updating. It replaces the boot.elf file of a designated directory with one from a specified server. Details in the full article.

Download: libupdate

Homebrew - libupdate - Image 1Wiibrew developer AlexLH has released libupdate for fellow developers. It’s a library that allows auto-updating. It replaces the boot.elf file of a designated directory with one from a specified server.

Although the author didn’t release a list of specified features for the program’s release, he did provide one before the program was completed. Here it is, so you can get an idea of what the program has to offer (note that these may have been changed, added, or deleted since):

  • Supports wiiload
  • Auto-detect the current dir, and replaces the boot.elf with the one from the server you specify
  • If the current dir is “/” (only happens if you use wiiload, or twilight hack), it will automatically download the boot.elf and place it in the directory the developer chooses. (in the future it will let the user pick the location)

Future releases will allow the library to be used with GRRLib and libwiisprite. Should you use the library, AlexLH requests that you give credit to the coders who made the library possible. Please visit his site (source linked below) for the full list of coders.


Also note that you have to do the following things to use the library. Here are the release notes from AlexLH:

Here is how to use it:

load_network();
s32 main_server = connect_to_server(“000.000.000.000”);
FILE *f = fopen(get_location(“boot.elf”, “/location/of-app”), “wb+”);
send_message(main_server, “/location-of-update/boot.elf”, “www.url.of.server”);
instructions_update();
get_file(main_server, f);
fclose(f);
net_close(main_server);

You must do all of that to get it working… and everything else is in the lib…

000.000.000.000 is the IP Address of the server. example: “74.86.133.219”

/location/of-app is where you want it to update/install if using wiiload. If it is not using wiiload… it will update in the app’s current directory.

/location-of-update/boot.elf is where on the server the update file is… YOU MUST PUT THE PROPER URL! example: /WiiMU/boot.elf

www.url.of.server is the URL of the server. YOU MUST PUT THE WWW AS A PREFIX! example: www.wiibrew.exofire.net

Download: libupdate


Related Articles:

Via Exofire

Add a Comment

Your email address will not be published. Required fields are marked *