Homebrew How to Use FS Resources in Coreinit.rpl?

Last edited by BullyWiiPlaza,
  • Like
Reactions: HackingNewbie
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