Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS/FS: More accurate emulation of GetDirectoryStats() and GetNandStats(). #11711

Merged
merged 4 commits into from Apr 10, 2023

Conversation

AdmiralCurtiss
Copy link
Contributor

The stats should actually match console now, which means block sizes for saves, channels and free blocks according to the Wii Menu should now match console too.

I've tested this by taking a NAND dump, importing that in Dolphin into an empty Wii folder, and then running this self-written homebrew (binary) and comparing the output.

console-stats.txt
dolphin-stats-before.txt
dolphin-stats-after.txt

The log output of my homebrew to test this is still noticeably different because we don't seem to correctly implement permissions for ReadDirectory() -- or maybe that's because I'm launching the homebrew directly on Dolphin instead of through the Homebrew Channel? File order also doesn't seem to be preserved when importing a NAND dump.


For reference:

Console:
console-stats
console-free-blocks

Imported NAND:
nand

Dolphin before:
dolphin-stats-before
dolphin-free-blocks-before

Dolphin after:
dolphin-stats-after
dolphin-free-blocks-after

Copy link
Contributor

@iwubcode iwubcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise LGTM. Tested with my own Nand, comparing block sizes before/after.

@AdmiralCurtiss
Copy link
Contributor Author

Any more comments here? Otherwise I'll merge this in the next few days so I can implement https://bugs.dolphin-emu.org/issues/13225

@AdmiralCurtiss AdmiralCurtiss merged commit fdc1ff1 into dolphin-emu:master Apr 10, 2023
14 checks passed
@AdmiralCurtiss AdmiralCurtiss deleted the ios-fs-stats branch April 10, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants