Skip to content

Commit

Permalink
UI: Always save screenshots to the Ryujinx data directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Nov 22, 2024
1 parent e05875a commit 5534001
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Ryujinx/AppHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,7 @@ private void Renderer_ScreenCaptured(object sender, ScreenCaptureImageInfo e)
string filename = $"{sanitizedApplicationName}_{currentTime.Year}-{currentTime.Month:D2}-{currentTime.Day:D2}_{currentTime.Hour:D2}-{currentTime.Minute:D2}-{currentTime.Second:D2}.png";
string directory = AppDataManager.Mode switch
{
AppDataManager.LaunchMode.Portable or AppDataManager.LaunchMode.Custom => Path.Combine(AppDataManager.BaseDirPath, "screenshots"),
_ => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "Ryujinx"),
};
string directory = Path.Combine(AppDataManager.BaseDirPath, "screenshots");
string path = Path.Combine(directory, filename);
Expand Down

0 comments on commit 5534001

Please sign in to comment.