File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1709,7 +1709,7 @@ void Client::makeScreenshot(IrrlichtDevice *device)
1709
1709
struct tm *tm = localtime (&t);
1710
1710
1711
1711
char timetstamp_c[64 ];
1712
- strftime (timetstamp_c, sizeof (timetstamp_c), " %FT%T " , tm );
1712
+ strftime (timetstamp_c, sizeof (timetstamp_c), " %Y%m%d_%H%M%S " , tm );
1713
1713
1714
1714
std::string filename_base = g_settings->get (" screenshot_path" )
1715
1715
+ DIR_DELIM
@@ -1722,7 +1722,7 @@ void Client::makeScreenshot(IrrlichtDevice *device)
1722
1722
unsigned serial = 0 ;
1723
1723
1724
1724
while (serial < SCREENSHOT_MAX_SERIAL_TRIES) {
1725
- filename = filename_base + (serial > 0 ? (" - " + itos (serial)) : " " ) + filename_ext;
1725
+ filename = filename_base + (serial > 0 ? (" _ " + itos (serial)) : " " ) + filename_ext;
1726
1726
std::ifstream tmp (filename.c_str ());
1727
1727
if (!tmp.good ())
1728
1728
break ; // File did not apparently exist, we'll go with it
You can’t perform that action at this time.
0 commit comments