Hacking Inside WBFS

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
How are the the blocks allocated? (i guess simply the first free block)
Can u try different allocation policies?
Maybe from the largest continious group of free blocks (aka worst-fit), from the first group which is large enough for the game (first-fit) or from the smallest large enough group (best-fit)?
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
While I dont think its a critical problem fragmentation seems ridiculously high.
I would like to try myself but as I dont know much C and nothing of libwbfs I cant make head or tails of the allocation function.
And as you were experimenting anyway I wanted to share my ideas about it.
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
Well ... I knew that much.
The code itself was the problem.
But once I got that it is a simple bitmap the rest was easy.

I implemented a variation of the worst fit algorithm.
Everything else would require deeper changes in the code and I only wanted to play around a bit.


To test it I used
CODE./wwt -q init a.wbfs -s512 -f; ./wwt -qp a.wbfs phantom 150x1-4g; for ((i=0;i
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • ShinyLuxio @ ShinyLuxio:
    @BigOnYa thanks but my question isn't there
  • BigOnYa @ BigOnYa:
    You ask your questions there, create a new thread if its not already answered, then eventually a 3ds genius will respond.
  • ShinyLuxio @ ShinyLuxio:
    I will, thanks
    +1
  • BigOnYa @ BigOnYa:
    No prob and btw, welcome to gbatemp! :grog:
  • BigOnYa @ BigOnYa:
    @K3Nv2 I got some cheapies at wallys, that are pretty good, already have lost a few expensive ones (one falls out and gone, can't find) while cutting grass so bought some cheap ones, and of course never lose these cheap ones. (Cheap meaning only $35, compared to air buds which I only have 1 of 2 now)
  • BigOnYa @ BigOnYa:
    They need to add air tags to they airbuds..
  • The Real Jdbye @ The Real Jdbye:
    @BigOnYa the airtags are bigger than the airpods, they won't fit
    +1
  • BigOnYa @ BigOnYa:
    Be cool tech tho. Of course they want to lose them anyways. Buy and buy again.
  • K3Nv2 @ K3Nv2:
    Apple could make a find my AirPods thing pretty easily
    +1
  • BigOnYa @ BigOnYa:
    You would think, esp using bluetooth, not GPS, like a "your getting hot-er" meter on your phone.
  • BigOnYa @ BigOnYa:
    I think they should tie up diddy, and let all the victims come and abuse him, we'll make a holiday of it every year. (jk, maybe)
  • BigOnYa @ BigOnYa:
    I'm starting to sound like a Tck Gonna cut myself off.
  • K3Nv2 @ K3Nv2:
    It's not 4th of July yet
  • Veho @ Veho:
    It is in India.
  • Veho @ Veho:
    Wow, only $700?
  • SnowStormAkikaze @ SnowStormAkikaze:
    Hey :)
    If I book mark the topic where can I read them?
  • Veho @ Veho:
    Click on your profile pic in the top right corner, and you'll get the profile menu popup, with the profile icon highlighted at the top, and the "bookmarks" banner next to it in gray. Click on that icon and you'll get a list of your bookmarks.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Banners we don't need no stinking banners! Lol
    +1
  • AncientBoi @ AncientBoi:
    [bans you for not taking a bath] :tpi::rofl2::tpi:
  • Veho @ Veho:
    Who bans the banners?
    +1
  • AncientBoi @ AncientBoi:
    I just did
    AncientBoi @ AncientBoi: I just did