Hacking USB Loader... my turn ;)

  • Thread starter Thread starter WiiShizzza
  • Start date Start date
  • Views Views 817,588
  • Replies Replies 4,239
bula said:
FenrirWolf said:
So it sounds like the fix is simple. Sweet.

Posted by AllWIIdUP:

Looking at the WBFS alloc and free functions I noticed an off by 1 error, that likely frees the wrong block.

in libwbfs.c:

CODEstatic void free_block(wbfs_t *p,int bl)
{
+ int i = (bl-1)/(32);
+ int j = (bl-1)&31;
u32 v = wbfs_ntohl(p->freeblks);
p->freeblks = wbfs_htonl(v | 1freeblks);
p->freeblks = wbfs_htonl(v | 1wlba_table); // bl = info->wlba_table
if (iwlba)
free_block(p,iwlba); // should have been free_block(p,iwlba - 1);but since "alloc_block" adds the +1 then "free_block" should have the -1, otherwise someone else might introduce the bug again, if the use free_block in another place since both block functions are used for "wlba_table".



EDIT:
WiiNinja compiled and tested a windows version with the fix and all it well ;P
http://www.mediafire.com/?vvtmcmlyh32

Hi hungyip84
can you add the 1 to v3 source and recompile it. This should sove the remove problem. Thanks


Easy fix =) I have fixed it
 
hungyip84 said:
bula said:
FenrirWolf said:
So it sounds like the fix is simple. Sweet.

Posted by AllWIIdUP:

Looking at the WBFS alloc and free functions I noticed an off by 1 error, that likely frees the wrong block.

in libwbfs.c:

CODEstatic void free_block(wbfs_t *p,int bl)
{
+ int i = (bl-1)/(32);
+ int j = (bl-1)&31;
u32 v = wbfs_ntohl(p->freeblks);
p->freeblks = wbfs_htonl(v | 1freeblks);
p->freeblks = wbfs_htonl(v | 1wlba_table); // bl = info->wlba_table
if (iwlba)
free_block(p,iwlba); // should have been free_block(p,iwlba - 1);but since "alloc_block" adds the +1 then "free_block" should have the -1, otherwise someone else might introduce the bug again, if the use free_block in another place since both block functions are used for "wlba_table".



EDIT:
WiiNinja compiled and tested a windows version with the fix and all it well ;P
http://www.mediafire.com/?vvtmcmlyh32

Hi hungyip84
can you add the 1 to v3 source and recompile it. This should sove the remove problem. Thanks


Easy fix =) I have fixed it


AWESOME WORK! Thanks yet again, man!
 
hungyip84 said:
bula said:
FenrirWolf said:
So it sounds like the fix is simple. Sweet.

Posted by AllWIIdUP:

Looking at the WBFS alloc and free functions I noticed an off by 1 error, that likely frees the wrong block.

in libwbfs.c:

CODEstatic void free_block(wbfs_t *p,int bl)
{
+ int i = (bl-1)/(32);
+ int j = (bl-1)&31;
u32 v = wbfs_ntohl(p->freeblks);
p->freeblks = wbfs_htonl(v | 1freeblks);
p->freeblks = wbfs_htonl(v | 1wlba_table); // bl = info->wlba_table
if (iwlba)
free_block(p,iwlba); // should have been free_block(p,iwlba - 1);but since "alloc_block" adds the +1 then "free_block" should have the -1, otherwise someone else might introduce the bug again, if the use free_block in another place since both block functions are used for "wlba_table".



EDIT:
WiiNinja compiled and tested a windows version with the fix and all it well ;P
http://www.mediafire.com/?vvtmcmlyh32

Hi hungyip84
can you add the 1 to v3 source and recompile it. This should sove the remove problem. Thanks


Easy fix =) I have fixed it

WOOHOO!
grog.gif
 
wiimano said:
kongsnutz said:
Can you provide Hunyip with Brismas source code??

maybe he'll have a look..being the nice fellow he is.

hey mates, happy easter to ya, ive shown a few people the source for brismas loader, but i will just post it here again, here ya go

yes, in my sd root, in folder named images, no caps

all images are from kosaic, so they should be right

the problem seems to be when the loader says "waiting for usb device" the images will not load after the usb drive been detected

if loader doesn't say that and loads right away, images load

on brismas tho, images will load no matter how long it says "waiting for usb device"

thats what ive been tryin to have people add into these loaders on here, i know there is others too, they just havent been sayin somethin about it. unfortunately my drive is not as compatible so it takes a few seconds to 30 seconds to recognize and load up the drive

here is the source to brismas loader
http://wiinewz.com/forums/591533-post80.html

http://www.brisma.net/src/USB_Loader.1.1s_...1_by_Brisma.zip


also, this was another i found, and it worked, just simply used brismas source among others

http://www.tehskeen.com/forums/showpost.ph...amp;postcount=1


hungyip pleaes take a look at source if you can, to figure the image reload fix out, because this works great for me, but not close to how good the loaders are now.

Hi, hungyip84

Can you please also get the image loading
bug fix?
 
hungyip84 said:
Tester needed for delete bug fix:

[url=http://sharebee.com/8fada77a]http://sharebee.com/8fada77a[/url]

Take your own risk!

Posts merged

I will look at the image reload bug.

Do you have any IM so i can work with you?
Hey hungyip84, can you also try to implement the title renaming via Config-File from here? That would be awesome
smile.gif
. WiiShizzza said he failed, so my hope is on you
tongue.gif
.
 
Blue-K said:
hungyip84 said:
Tester needed for delete bug fix:

[url=http://sharebee.com/8fada77a]http://sharebee.com/8fada77a[/url]

Take your own risk!

Posts merged

I will look at the image reload bug.

Do you have any IM so i can work with you?
Hey hungyip84, can you also try to implement the title renaming via Config-File from here? That would be awesome
smile.gif
. WiiShizzza said he failed, so my hope is on you
tongue.gif
.

It's possible I hope someone else could do that for me =) I am exhausted
 
netghost007 said:
Ruud91 said:
bula said:
Ruud91 said:
Hey guys
I spend my whole day (yesterday) to find out everything about wads
tongue.gif
, and after a lot of work I finnaly managed to make an animated channel with the loader from this thread
So I hope you guys like it
wink2.gif
, and hope the guys who made it don't have anything against it
ph34r.gif

Inside the zip is the wad with the adult version of the loader (V3), a movie from the loader itself (that is the 8 mb xD) and the images map
enjoy!
http://www.megaupload.com/?d=VU07AC3C
and yeah, the quality of my movie isn't that good because of the crappy cellphone
Hi Ruud91,
Is this wad made using the last v3 posted here? TY
yeah it is
biggrin.gif

I can't download from megaupload. Do you have another mirror?

http://rapidshare.com/files/220553715/Wii_...91WAD_.zip.html yes now i have
biggrin.gif
 
PERFECT.......!!!!! I deleted a game in the middle of my HD and game before and after works perfect. Hats down for all that help to get it here.
 
Ruud91 said:
netghost007 said:
Ruud91 said:
bula said:
Ruud91 said:
Hey guys
I spend my whole day (yesterday) to find out everything about wads
tongue.gif
, and after a lot of work I finnaly managed to make an animated channel with the loader from this thread
So I hope you guys like it
wink2.gif
, and hope the guys who made it don't have anything against it
ph34r.gif

Inside the zip is the wad with the adult version of the loader (V3), a movie from the loader itself (that is the 8 mb xD) and the images map
enjoy!
http://www.megaupload.com/?d=VU07AC3C
and yeah, the quality of my movie isn't that good because of the crappy cellphone
Hi Ruud91,
Is this wad made using the last v3 posted here? TY
yeah it is
biggrin.gif

I can't download from megaupload. Do you have another mirror?

http://rapidshare.com/files/220553715/Wii_...91WAD_.zip.html yes now i have
biggrin.gif
Could you update it for the last dol posted (game removal fix). Thanks
 
bula said:
PERFECT.......!!!!! I deleted a game in the middle of my HD and game before and after works perfect. Hats down for all that help to get it here.

Great! Now we can remove teen version from our plate =)
 

Site & Scene News

Popular threads in this forum