mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 17:19:18 +01:00
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
Block a user