mirror of https://github.com/cemu-project/Cemu.git
Correctly create screenshot directory if it does not exist (#551)
This commit is contained in:
parent
b361b154d8
commit
dd538d477c
|
@ -145,7 +145,7 @@ void Renderer::SaveScreenshot(const std::vector<uint8>& rgb_data, int width, int
|
|||
{
|
||||
fs::path screendir = _GenerateScreenshotFilename(!mainWindow);
|
||||
if (!fs::exists(screendir.parent_path()))
|
||||
fs::create_directory(screendir);
|
||||
fs::create_directories(screendir.parent_path());
|
||||
if (image.SaveFile(screendir.wstring()))
|
||||
{
|
||||
if(mainWindow)
|
||||
|
|
Loading…
Reference in New Issue