mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Use datetime stamp for screenshot names
This commit is contained in:
parent
05af82a4ad
commit
46090fde0a
@ -1,5 +1,6 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
|
#include "rtc.h"
|
||||||
#include "vff.h"
|
#include "vff.h"
|
||||||
|
|
||||||
|
|
||||||
@ -13,14 +14,13 @@ void CreateScreenshot() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
char filename[64];
|
char filename[64];
|
||||||
static u32 n = 0;
|
DsTime dstime;
|
||||||
|
|
||||||
fvx_rmkdir(OUTPUT_PATH);
|
fvx_rmkdir(OUTPUT_PATH);
|
||||||
for (; n < 1000; n++) {
|
get_dstime(&dstime);
|
||||||
snprintf(filename, 64, OUTPUT_PATH "/snap%03i.bmp", (int) n);
|
snprintf(filename, 64, OUTPUT_PATH "/snap_%02X%02X%02X%02X%02X%02X.bmp",
|
||||||
if (fvx_stat(filename, NULL) != FR_OK) break;
|
dstime.bcd_Y, dstime.bcd_M, dstime.bcd_D,
|
||||||
}
|
dstime.bcd_h, dstime.bcd_m, dstime.bcd_s);
|
||||||
if (n >= 1000) return;
|
|
||||||
|
|
||||||
u8* buffer = (u8*) malloc(snap_size);
|
u8* buffer = (u8*) malloc(snap_size);
|
||||||
if (!buffer) return;
|
if (!buffer) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user