jwcgator said:I'm going to try this compiled into the USB loader 1.3 source code and deleting and adding a couple ISOs to see how it works >_>
piratesmack said:Good job, allwiidup
So do I have to reformat my wbfs partition?
AllWiidUp said:piratesmack said:Good job, allwiidup
So do I have to reformat my wbfs partition?
Only if you deleted a bunch of games, every delete of a game in the old version of libwbfs would leak a block ( not a ton of space unless it's a large HDD ). If there are enough people with problems I could code up something to fix the freeblock list.
TroyTheZombie said:AllWiidUp, Great job on finding the fix for this. Its already being implemented in many loaders and WBFS managers.
Just had to say that, lol.
WiiShizzza said:isn't it enough to just change the following?
u32 wbfs_rm_disc(wbfs_t*p, u8* discid)
{
wbfs_disc_t *d = wbfs_open_disc(p,discid);
int i;
int discn = 0;
int disc_info_sz_lba = p->disc_info_sz>>p->hd_sec_sz_s;
if(!d)
return 1;
load_freeblocks(p);
discn = d->i;
for( i=0; i< p->n_wbfs_sec_per_disc; i++)
{
u32 iwlba = wbfs_ntohs(d->header->wlba_table);
if (iwlba)
free_block(p,iwlba); free_block(p, iwlba - 1);
}
memset(d->header,0,p->disc_info_sz);
p->write_hdsector(p->callback_data,p->part_lba+1+discn*disc_info_sz_lba,disc_info_sz_lba,d->header);
p->head->disc_table[discn] = 0;
wbfs_close_disc(d);
wbfs_sync(p);
return 0;
}
This would be great if we had something that could fix the games that are corrupt for those of us who have deleted games...AllWiidUp said:piratesmack said:Good job, allwiidup
So do I have to reformat my wbfs partition?
Only if you deleted a bunch of games, every delete of a game in the old version of libwbfs would leak a block ( not a ton of space unless it's a large HDD ). If there are enough people with problems I could code up something to fix the freeblock list.
darkten said:For the coders out there, Waninkoko included (), when we did the mac os x changes and ported some of Sorg's code for the wbfs cli tool we set up a git for those changes, plus Sorg's changes and anything else we could find, *properly #ifdef'd by the supported platforms* here:
http://github.com/caristat/wbfs/tree/master
Is there some sort of master source repository/svn/other managed solution somewhere so that it is easy to keep everything sync'd up?
Anyone is welcome to use it of course, and in the spirit of openess and cooperation, etc just letting everyone know it is there. We'll try to get this fix into the OS X code soon.
d10