mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-02-16 17:35:39 +00:00
hopefully fix building on linux
This commit is contained in:
parent
981cdc33f5
commit
db013491b4
|
@ -425,9 +425,9 @@ void Screenshot()
|
|||
{
|
||||
// Make a screenshot
|
||||
char file[128];
|
||||
string info = "Screenshot created: ";
|
||||
time_t now = time(0);
|
||||
tm* ltm = localtime(&now);
|
||||
std::string info = "Screenshot created: ";
|
||||
time_t now = std::time(nullptr);
|
||||
tm* ltm = std::localtime(&now);
|
||||
|
||||
sprintf(file, "Screenshot %.4d-%.2d-%.2d (%.2d-%.2d-%.2d).bmp", 1900 + ltm->tm_year, 1 + ltm->tm_mon, ltm->tm_mday, ltm->tm_hour, ltm->tm_min, ltm->tm_sec);
|
||||
|
||||
|
|
Loading…
Reference in a new issue