Fix SaveCurrentScreenshot

This fixes SaveCurrentScreenshot so it correctly saves the screenshot into the screenshot folder, it's no longer a stub

I was going to add the capture button so all games worked but tbh I only care for spongebob

games tested
Pokemon Z-A: https://files.raychu.xyz/u/1FaUGV.png
Pokemon Violet: https://files.raychu.xyz/u/6swfVS.png
Pokemon Violet: https://files.raychu.xyz/u/JaBBX2.png
Spongebob The Cosmic Shake: https://files.raychu.xyz/u/8z5X2e.png
This commit is contained in:
Princess Piplup 2025-12-04 17:35:17 -06:00 committed by KeatonTheBot
parent f6adcd2f65
commit ab571e81b3
4 changed files with 16 additions and 1 deletions

View file

@ -416,7 +416,7 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
return ResultCode.InvalidParameters; return ResultCode.InvalidParameters;
} }
Logger.Stub?.PrintStub(LogClass.ServiceAm, new { albumReportOption }); context.Device.UIHandler.TakeScreenshot();
return ResultCode.Success; return ResultCode.Success;
} }

View file

@ -60,5 +60,10 @@ namespace Ryujinx.HLE.UI
/// Gets fonts and colors used by the host. /// Gets fonts and colors used by the host.
/// </summary> /// </summary>
IHostUITheme HostUITheme { get; } IHostUITheme HostUITheme { get; }
/// <summary>
/// Takes a screenshot from the current renderer and saves it in the screenshots folder.
/// </summary>
void TakeScreenshot();
} }
} }

View file

@ -571,5 +571,10 @@ namespace Ryujinx.Headless
SDL2Driver.Instance.Dispose(); SDL2Driver.Instance.Dispose();
} }
} }
public void TakeScreenshot()
{
throw new NotImplementedException();
}
} }
} }

View file

@ -260,5 +260,10 @@ namespace Ryujinx.Ava.UI.Applet
{ {
return new AvaloniaDynamicTextInputHandler(_parent); return new AvaloniaDynamicTextInputHandler(_parent);
} }
public void TakeScreenshot()
{
_parent.ViewModel.AppHost.ScreenshotRequested = true;
}
} }
} }