mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix #14
This commit is contained in:
parent
3caf3f0d3d
commit
898402f29a
@ -361,6 +361,12 @@ void driveMenu (void) {
|
||||
// Make a screenshot
|
||||
if ((held & KEY_R) && (pressed & KEY_L)) {
|
||||
if (sdMounted || flashcardMounted) {
|
||||
if (access((sdMounted ? "sd:/gm9i" : "fat:/gm9i"), F_OK) != 0) {
|
||||
mkdir((sdMounted ? "sd:/gm9i" : "fat:/gm9i"), 0777);
|
||||
}
|
||||
if (access((sdMounted ? "sd:/gm9i/out" : "fat:/gm9i/out"), F_OK) != 0) {
|
||||
mkdir((sdMounted ? "sd:/gm9i/out" : "fat:/gm9i/out"), 0777);
|
||||
}
|
||||
char snapPath[32];
|
||||
snprintf(snapPath, sizeof(snapPath), "%s:/gm9i/out/snap_%s.bmp", (sdMounted ? "sd" : "fat"), RetTimeForFilename().c_str());
|
||||
screenshotbmp(snapPath);
|
||||
|
||||
@ -435,7 +435,7 @@ string browseForFile (void) {
|
||||
}
|
||||
}
|
||||
if (clipboardOn) {
|
||||
printf ("\x1b[10;0H");
|
||||
printf ("\x1b[9;0H");
|
||||
printf ("\x1B[47m"); // Print foreground white color
|
||||
printf ("[CLIPBOARD]\n");
|
||||
printf ("\x1B[40m"); // Print foreground black color
|
||||
@ -610,6 +610,15 @@ string browseForFile (void) {
|
||||
|
||||
// Make a screenshot
|
||||
if ((held & KEY_R) && (pressed & KEY_L)) {
|
||||
if (access((sdMounted ? "sd:/gm9i" : "fat:/gm9i"), F_OK) != 0) {
|
||||
mkdir((sdMounted ? "sd:/gm9i" : "fat:/gm9i"), 0777);
|
||||
if (strcmp (path, (sdMounted ? "sd:/" : "fat:/")) == 0) {
|
||||
getDirectoryContents (dirContents);
|
||||
}
|
||||
}
|
||||
if (access((sdMounted ? "sd:/gm9i/out" : "fat:/gm9i/out"), F_OK) != 0) {
|
||||
mkdir((sdMounted ? "sd:/gm9i/out" : "fat:/gm9i/out"), 0777);
|
||||
}
|
||||
char snapPath[32];
|
||||
snprintf(snapPath, sizeof(snapPath), "%s:/gm9i/out/snap_%s.bmp", (sdMounted ? "sd" : "fat"), RetTimeForFilename().c_str());
|
||||
screenshotbmp(snapPath);
|
||||
|
||||
@ -94,7 +94,7 @@ int main(int argc, char **argv) {
|
||||
consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
|
||||
|
||||
// Display GM9i logo
|
||||
bg3 = bgInit(3, BgType_Bmp16, BgSize_B16_256x256, 1, 0);
|
||||
bg3 = bgInit(3, BgType_Bmp16, BgSize_B16_256x256, 1, 0);
|
||||
bgSetScroll(bg3, 0, 0);
|
||||
decompress(gm9i_logoBitmap, bgGetGfxPtr(bg3), LZ77Vram);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user