diff options
| author | Ac_K <Acoustik666@gmail.com> | 2021-03-26 01:16:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-26 01:16:08 +0100 |
| commit | 32be8caa9d37471947e5d75f953f8fda7a3e1943 (patch) | |
| tree | cac2c6ae27e789963d12c168f4368211daf2dcf0 /Ryujinx.HLE/HOS/Services/Caps/IAlbumControlService.cs | |
| parent | 4bd1ad16f93e8decf790191868690c3bd3875ee0 (diff) | |
caps: Implement SaveScreenShot calls and cleanup (#2140)
* caps: Implement SaveScreenShot calls and cleanup
This PR implement:
- caps:u IAlbumApplicationService (32) SetShimLibraryVersion
- caps:c IAlbumControlService (33) SetShimLibraryVersion
- caps:su IScreenShotApplicationService (32) SetShimLibraryVersion
- caps:su IScreenShotApplicationService (203/205/210) SaveScreenShotEx0/SaveScreenShotEx1/SaveScreenShotEx2
ImageSharp is used to save the raw screenshot data as a JPG file following what the service does.
All screenshots are save in: `%AppData%\Ryujinx\sdcard\Nintendo\Album` folder. (as example a screenshot file path will be `%AppData%\Ryujinx\sdcard\Nintendo\Album\2021\03\26\2021032601020300-0123456789ABCDEF0123456789ABCDEF.jpg`
This is needed by Animal Crossing: New Horizon where screenshots looks like this:
And this is needed in Monster Hunter Rise but screenshots are currently empty due to another issue.
* remove useless comment
* Addresses gdkchan feedback
* Addresses gdkchan feedback 2
* remove useless comment 2
* Fix nits
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Caps/IAlbumControlService.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Caps/IAlbumControlService.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Caps/IAlbumControlService.cs b/Ryujinx.HLE/HOS/Services/Caps/IAlbumControlService.cs index de880153..48cb9cab 100644 --- a/Ryujinx.HLE/HOS/Services/Caps/IAlbumControlService.cs +++ b/Ryujinx.HLE/HOS/Services/Caps/IAlbumControlService.cs @@ -4,5 +4,12 @@ namespace Ryujinx.HLE.HOS.Services.Caps class IAlbumControlService : IpcService { public IAlbumControlService(ServiceCtx context) { } + + [Command(33)] // 7.0.0+ + // SetShimLibraryVersion(pid, u64, nn::applet::AppletResourceUserId) + public ResultCode SetShimLibraryVersion(ServiceCtx context) + { + return context.Device.System.CaptureManager.SetShimLibraryVersion(context); + } } }
\ No newline at end of file |
