X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..f901941933f6bad712e855476b90c169315f9391:/utils/screenshotgen/src/autocapture.cpp?ds=sidebyside diff --git a/utils/screenshotgen/src/autocapture.cpp b/utils/screenshotgen/src/autocapture.cpp index b3b74db03e..1ad9723dbb 100644 --- a/utils/screenshotgen/src/autocapture.cpp +++ b/utils/screenshotgen/src/autocapture.cpp @@ -141,7 +141,8 @@ void AutoCaptureMechanism::Save(wxBitmap* screenshot, const wxString& fileName) if (!wxDirExists(default_dir)) wxMkdir(default_dir); - wxFileName fullFileName(default_dir, fileName + ".png"); + wxFileName fullFileName(default_dir, "appear-" + fileName + + "-" + wxPlatformInfo::Get().GetPortIdShortName() + ".png"); // do not overwrite already existing files with this name while (fullFileName.FileExists())