Homebrew How to Use FS Resources in Coreinit.rpl?

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
Last edited by BullyWiiPlaza,
  • Like
Reactions: HackingNewbie

shinyquagsire23

SALT/Sm4sh Leak Guy
Member
Joined
Nov 18, 2012
Messages
1,977
Trophies
2
Age
26
Location
Las Vegas
XP
3,765
Country
United States
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.
 
  • Like
Reactions: HackingNewbie

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    I @ idonthave: :)