mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-16 13:37:03 +00:00
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:
parent
f6adcd2f65
commit
ab571e81b3
4 changed files with 16 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -571,5 +571,10 @@ namespace Ryujinx.Headless
|
||||||
SDL2Driver.Instance.Dispose();
|
SDL2Driver.Instance.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void TakeScreenshot()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue