Skip to content

Commit 519e710

Browse files
committed
Change folder to 100DSI00
Whoops, the DCF folder needs to be 8 characters
1 parent baea8f4 commit 519e710

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DSi camera test
22

3-
This is an example app for using the DSi's cameras. Currently it can show both cameras and save a picture to `sd:/DCIM/100DSITEST/IMG_####.png`.
3+
This is an example app for using the DSi's cameras. Currently it can show both cameras and save a picture to `sd:/DCIM/100DSI00/IMG_####.png`.
44

55
![Example photo](resources/example.png)
66

arm9/source/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int clamp(int val, int min, int max) { return val < min ? min : (val > max) ? ma
1818
int getImageNumber() {
1919
int highest = -1;
2020

21-
DIR *pdir = opendir("/DCIM/100DSITEST");
21+
DIR *pdir = opendir("/DCIM/100DSI00");
2222
if(pdir == NULL) {
2323
printf("Unable to open directory");
2424
return -1;
@@ -51,7 +51,7 @@ int main(int argc, char **argv) {
5151
bool fatInited = fatInitDefault();
5252
if(fatInited) {
5353
mkdir("/DCIM", 0777);
54-
mkdir("/DCIM/100DSITEST", 0777);
54+
mkdir("/DCIM/100DSI00", 0777);
5555
} else {
5656
printf("FAT init failed, photos cannot\nbe saved.\n");
5757
}
@@ -130,7 +130,7 @@ int main(int argc, char **argv) {
130130
free(yuv);
131131

132132
char imgName[32];
133-
sprintf(imgName, "/DCIM/100DSITEST/IMG_%04d.PNG", getImageNumber());
133+
sprintf(imgName, "/DCIM/100DSI00/IMG_%04d.PNG", getImageNumber());
134134
lodepng_encode24_file(imgName, rgb, 640, 480);
135135
free(rgb);
136136

0 commit comments

Comments
 (0)