Skip to content

SD card access #191

Answered by Meziu
GustavoSchip asked this question in Q&A
Jun 15, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I haven't found a way to access the SD card using ctru-rs, could someone help me?

The SD card is automatically accessible with normal std::fs commands, since the connection is established by default via libctru. For example, to access the /3ds folder you only need to do:

std::fs::read_dir("/3ds");

To access a custom RomFS bundled with the executable, have a look at the romfs example.

I hope this helps 👍

Edit: although slightly more complicated than other examples, this functionality is shown in the file-explorer example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GustavoSchip
Comment options

Answer selected by GustavoSchip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants