Skip to content

Commit ec38d16

Browse files
committed
Handle creating screenshots in ctrnand properly
1 parent 7a579f6 commit ec38d16

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source/screenshot.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,13 @@ static void generateScreenshotFileName(int number, char *fileName, const char *e
9797
int month = timeStruct->tm_mon + 1;
9898
int year = timeStruct->tm_year + 1900;
9999

100-
if (!(dirExists(fsArchive, "sdmc:/screenshots/")))
101-
makeDir(fsArchive, "sdmc:/screenshots");
100+
if (!(BROWSE_STATE == STATE_NAND))
101+
{
102+
if (!(dirExists(fsArchive, "/screenshots/")))
103+
makeDir(fsArchive, "/screenshots");
102104

103-
sprintf(fileName, "sdmc:/screenshots/Screenshot_%02d%02d%02d-%i%s", year, month, day, num, ext);
105+
sprintf(fileName, "/screenshots/Screenshot_%02d%02d%02d-%i%s", year, month, day, num, ext);
106+
}
104107
}
105108

106109
void captureScreenshot(void)

0 commit comments

Comments
 (0)