Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
User reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
PC, Console & Handheld Discussions
Nintendo Wii
Is there some technical info on WBFS scrubbing?
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Wiimm" data-source="post: 4420062" data-attributes="member: 191758"><p>Here is the meta algorithm:</p><p></p><p>The Image is divided in blocks, each with 32KiB. A Single layer image have 143432 blocks. LIBWBFS assumes, that there are maximal 2*143432 blocks (enough space for a double layer image).</p><p></p><ol> <li data-xf-list-type="ol"> Create a vector of 2*143432 elements (bytes), set all to 0. A 1 represents a used block.</li> <li data-xf-list-type="ol"> Mark the first 10 blocks as used, if at least one byte is not NULL in a block (disc header).</li> <li data-xf-list-type="ol"> Find out all partitions (up to 4 partition tables).</li> <li data-xf-list-type="ol"> For each partition do:<ol> <li data-xf-list-type="ol"> Mark the first 4 blocks as used (TICKET, TMD, CERT, H3).</li> <li data-xf-list-type="ol"> Remember partition block #4 as BASE.</li> <li data-xf-list-type="ol"> Find all files of the file system, These are BOOT.BIN, BI.BIN, APPLOADER.IMG, MAIN.DOL, FST.BIN and all files of FST.BIN.</li> <li data-xf-list-type="ol"> For each file do:<ol> <li data-xf-list-type="ol"> Find partition offset of first and last byte of the file</li> <li data-xf-list-type="ol"> Divide the offsets by 0x7c00 (rounded down; 0x400 bytes are reserved for checksums) and call them BEGIN and END.</li> <li data-xf-list-type="ol"> Mark all blocks between BASE+BEGIN and BASE+END (both inclusive) as used.</li> </ol></li> </ol></li> <li data-xf-list-type="ol"> Now we have a list with all used blocks.</li> </ol></blockquote><p></p>
[QUOTE="Wiimm, post: 4420062, member: 191758"] Here is the meta algorithm: The Image is divided in blocks, each with 32KiB. A Single layer image have 143432 blocks. LIBWBFS assumes, that there are maximal 2*143432 blocks (enough space for a double layer image). [list=1] [*] Create a vector of 2*143432 elements (bytes), set all to 0. A 1 represents a used block. [*] Mark the first 10 blocks as used, if at least one byte is not NULL in a block (disc header). [*] Find out all partitions (up to 4 partition tables). [*] For each partition do: [list=1] [*] Mark the first 4 blocks as used (TICKET, TMD, CERT, H3). [*] Remember partition block #4 as BASE. [*] Find all files of the file system, These are BOOT.BIN, BI.BIN, APPLOADER.IMG, MAIN.DOL, FST.BIN and all files of FST.BIN. [*] For each file do: [list=1] [*] Find partition offset of first and last byte of the file [*] Divide the offsets by 0x7c00 (rounded down; 0x400 bytes are reserved for checksums) and call them BEGIN and END. [*] Mark all blocks between BASE+BEGIN and BASE+END (both inclusive) as used. [/list] [/list] [*] Now we have a list with all used blocks. [/list] [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
PC, Console & Handheld Discussions
Nintendo Wii
Is there some technical info on WBFS scrubbing?
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
AncientBoi
Loading…
@
AncientBoi
:
Speaking of which, brb
Today at 5:04 PM
@
SylverReZ
:
@AncientBoi
, Then take your meds smh
+1
Today at 5:08 PM
@
AncientBoi
:
done
+1
Today at 5:11 PM
@
SylverReZ
:
Now you can finally stop yapping.
Today at 5:21 PM
@
AncientBoi
:
+1
Today at 5:23 PM
@
BigOnYa
:
But the way he takes his meds, he prob can't sit for awhile
+2
Today at 5:28 PM
@
AncientBoi
:
+1
Today at 5:29 PM
@
SylverReZ
:
https://www.youtube.com/watch?v=9hITO8p5eoY
+1
Today at 5:32 PM
@
AncientBoi
:
Today at 5:34 PM
S
@
salazarcosplay
:
@AncientBoi
what meds are you taking?
Today at 5:36 PM
@
BigOnYa
:
Anti-OldManYellsAtTheCloud
+1
Today at 5:37 PM
@
AncientBoi
:
Cholesterol, Allergies, Pain, Mind Set, Heart..
Today at 5:39 PM
@
The Real Jdbye
:
probably not the fun kind
+1
Today at 5:40 PM
@
The Real Jdbye
:
yknow, old people and all
+1
Today at 5:40 PM
S
@
salazarcosplay
:
@AncientBoi
which one for the mind?
Today at 5:46 PM
S
@
salazarcosplay
:
I worry about cholesterol im doing the carnivore diet
Today at 5:47 PM
@
AncientBoi
:
Zoloft
Today at 5:47 PM
S
@
salazarcosplay
:
lost 30 po
unds so for
+2
Today at 5:47 PM
@
BigOnYa
:
I'm on the seefood diet... So far I've gained 30 pounds
+1
Today at 5:52 PM
@
AncientBoi
:
I'm on the
diet
+1
49 minutes ago
@
AncientBoi
:
But still Not Preggy yet
48 minutes ago
@
BigOnYa
:
So like most dream of robbing a bank if we knew could get away with it, do you dream of robbing a sperm bank?
+2
47 minutes ago
@
SylverReZ
:
https://www.youtube.com/watch?v=TE1LCvaq9pA
+1
41 minutes ago
@
SylverReZ
:
@BigOnYa
, Last job Ancient went to, he got fired for drinking on the job.
+2
41 minutes ago
@
AncientBoi
:
+1
10 minutes ago
Submit
@
AncientBoi
:
+1
10 minutes ago
Chat
1