Windows build fix

This commit is contained in:
MihailRis
2023-11-16 13:07:05 +03:00
parent d349b4b65a
commit 8310b1b768
9 changed files with 33 additions and 27 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ void Engine::updateHotkeys() {
unique_ptr<ImageData> image(Window::takeScreenshot());
image->flipY();
path filename = enginefs::get_screenshot_file("png");
png::write_image(filename, image.get());
png::write_image(filename.string(), image.get());
std::cout << "saved screenshot as " << filename << std::endl;
}
}