mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 13:31:18 +12:00
Correctly create screenshot directory if it does not exist (#551)
This commit is contained in:
parent
b361b154d8
commit
dd538d477c
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ void Renderer::SaveScreenshot(const std::vector<uint8>& rgb_data, int width, int
|
||||||
{
|
{
|
||||||
fs::path screendir = _GenerateScreenshotFilename(!mainWindow);
|
fs::path screendir = _GenerateScreenshotFilename(!mainWindow);
|
||||||
if (!fs::exists(screendir.parent_path()))
|
if (!fs::exists(screendir.parent_path()))
|
||||||
fs::create_directory(screendir);
|
fs::create_directories(screendir.parent_path());
|
||||||
if (image.SaveFile(screendir.wstring()))
|
if (image.SaveFile(screendir.wstring()))
|
||||||
{
|
{
|
||||||
if(mainWindow)
|
if(mainWindow)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue