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

Expand information on sdmc example (3DS) #44

Open
magusti opened this issue Mar 7, 2022 · 0 comments
Open

Expand information on sdmc example (3DS) #44

magusti opened this issue Mar 7, 2022 · 0 comments

Comments

@magusti
Copy link

magusti commented Mar 7, 2022

Thanks in advance for your work.
I would like to contribute a bit with the result of my exploration of the sdmc example from 3ds_examples. This example shows a raw image that must be present in the memory card.
Could you expand the explanation of the process of creating that image included in the source code with a little bit more information?

In main.c
//this example shows you how to load a binary image file from the SD card and display it on the lower screen
//for this to work you should copy test.bin to same folder as your .3dsx
//this file was generated with GIMP by saving a 240x320 image to raw RGB

e. g., with
//this example shows you how to load a binary image file from the SD card and display it on the lower screen
//for this to work you should copy test.bin to the same folder as your .3dsx
//this file was generated with GIMP by saving a 240x320 image to raw RGB
// or using convert (ImageMagick)
// convert -rotate 90 -resize 240x320! your_image.png bgr:test.bin
// Change "convert" by "magick" if you are in windows platform and using a ImageMagick versión >= 7

I suggest including the, probably, original bitmap test.png in the files of this example. I attach the one I get with the reverse command.

test

Also, if you are using Citra as an emulator for executing 3DS Homebrew, the raw image that must be present in the virtualized memory card mapped on a local directory, that in Linux it is done with the command
$ cp test.bin $HOME/.local/share/citra-emu/sdmc/test.bin;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant