Hello all, I was wondering how you use the FS resources (not just functions, but defines and typedefs/structs as well) in coreinit.rpl to read from/write to files? @BullyWiiPlaza @QuarkTheAwesome @wj44
You can't use any typedef or structs because they are not compiled. You have to reverse engineer them or just copy them from existing projects or e.g. wiiubrew.org. The FS functions can be used but they are kinda "hard to use" because of how many things you need to take care of. See this for examples on how they can be used: https://github.com/dimok789/ddd and https://github.com/BullyWiiPlaza/tcpgecko.
I'd recommend taking a look at https://github.com/decaf-emu/wut/blob/master/src/crt/fs_dev.c#L116 and the other functions, it's the actual devoptab for wut so you can see what you'd need to replicate an fopen -> fwrite/fread -> fclose. Basic gist though is that you have an FSClient instance and FSCmdBlock structures. I think w/ FSCmdBlock you can technically queue up operations and have them done asynchronously, but as far as the underlying structures I don't think it matters as much as long as you're passing the right arguments around and your allocation sizes are sane.
Sony made a shocking announcement today, revealing that the company plans to move away from physical game releases in the future. Citing claims of how the industry is...
After much speculation, a lot of which being caused by dbrand's unceremonious reveal of their Companion Cube casing, the Steam Machine is finally available to order...
What once seemed like a far off dream, and after many, many community restarts throughout the years, the elusive Mother 1 / EarthBound Beginnings Remake, which is a...
Since being decompiled Super Mario 64 has seen a considerable amount of interest. We've had multiple PC ports, but the efforts beyond that are really astounding. It's...
Remember when you could get an Xbox Series S for $300? Those were the days. Microsoft has today announced the latest in their console price hikes, seeing their...
Happy June 15th! Well, this one was close enough. Atmosphere has been updated to add support for the latest Nintendo Switch firmware, 22.5.0. This means all of you...
The delays may be behind us, but the news isn't all good for Grand Theft Auto VI. Rockstar have today announced that pre-orders for the game will go live tomorrow, on...
It's that time again. Batten down the hatches and ride out the storm, because we've got another Switch update! And Switch 2, but that's somewhat less impactful given...
After being announced earlier this month, the first early access release for Pokemon Infinite Fusion 2: Hoenn is now live. This first release includes the first two...
Last month we got confirmation of a new model of Switch 2 to better comply with upcoming EU regulations. With the legislation set to come into effect in February of...
Sony made a shocking announcement today, revealing that the company plans to move away from physical game releases in the future. Citing claims of how the industry is...
After much speculation, a lot of which being caused by dbrand's unceremonious reveal of their Companion Cube casing, the Steam Machine is finally available to order...
Remember when you could get an Xbox Series S for $300? Those were the days. Microsoft has today announced the latest in their console price hikes, seeing their...
The delays may be behind us, but the news isn't all good for Grand Theft Auto VI. Rockstar have today announced that pre-orders for the game will go live tomorrow, on...
Last month we got confirmation of a new model of Switch 2 to better comply with upcoming EU regulations. With the legislation set to come into effect in February of...
The end has come for the PlayStation 3 and the PlayStation Vita. After supporting the PSN Store on the PS3 and PS Vita since 2006 and 2011 respectively, Sony has...
Since being decompiled Super Mario 64 has seen a considerable amount of interest. We've had multiple PC ports, but the efforts beyond that are really astounding. It's...
What once seemed like a far off dream, and after many, many community restarts throughout the years, the elusive Mother 1 / EarthBound Beginnings Remake, which is a...
Apple have today announced price increases, primarily focused on their MacBook and iPad lines. These increases have already come into effect, with both prices and the...
It's that time again. Batten down the hatches and ride out the storm, because we've got another Switch update! And Switch 2, but that's somewhat less impactful given...