""
All times are GMT -5. The time now is 04:57 PM.  

Go Back   WiiNewz Forums > Scene Newz > Nintendo News
Recommended Shops

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-09-2008, 09:41 AM
xiaNaix's Avatar
Administrator
 
Join Date: Jan 2002
Posts: 1,833
Wii libwiiupdate

AlexLH has released libwiiupdate, which allows homebrew developers to easily add update support to their apps.
Quote:
First... 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 alse 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: Wii Homebrew News

For now... you must use it in console, because it uses a lot of printf's... I'll release a version that won't output anything... so it is compatible with everything...

also, you can update any file you want, including meta.xml, etc!
News Source: Official Site
Attached Files
File Type: zip libwiiupdate.zip (13.2 KB, 90 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump



All times are GMT -5. The time now is 04:57 PM.