fix windows build

This commit is contained in:
MihailRis
2025-02-04 13:32:50 +03:00
parent 8a12ff5879
commit 94bae83de6
4 changed files with 10 additions and 12 deletions
+2 -4
View File
@@ -98,10 +98,8 @@ io::path EnginePaths::getNewScreenshotFile(const std::string& ext) {
auto file = folder / ("screenshot-" + datetimestr + "." + ext);
uint index = 0;
while (io::exists(file)) {
file = folder / fs::u8path(
"screenshot-" + datetimestr + "-" +
std::to_string(index) + "." + ext
);
file = folder / ("screenshot-" + datetimestr + "-" +
std::to_string(index) + "." + ext);
index++;
}
return file;