Skip to content

Commit dd538d4

Browse files
author
Tom Lally
authored
Correctly create screenshot directory if it does not exist (#551)
1 parent b361b15 commit dd538d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cafe/HW/Latte/Renderer/Renderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void Renderer::SaveScreenshot(const std::vector<uint8>& rgb_data, int width, int
145145
{
146146
fs::path screendir = _GenerateScreenshotFilename(!mainWindow);
147147
if (!fs::exists(screendir.parent_path()))
148-
fs::create_directory(screendir);
148+
fs::create_directories(screendir.parent_path());
149149
if (image.SaveFile(screendir.wstring()))
150150
{
151151
if(mainWindow)

0 commit comments

Comments
 (0)