mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-20 05:21:40 +00:00
32be8caa9d
* 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
15 lines
No EOL
526 B
C#
15 lines
No EOL
526 B
C#
using Ryujinx.Common.Memory;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Caps.Types
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, Size = 0x40)]
|
|
struct ScreenShotAttribute
|
|
{
|
|
public uint Unknown0x00; // Always 0
|
|
public AlbumImageOrientation AlbumImageOrientation;
|
|
public uint Unknown0x08; // Always 0
|
|
public uint Unknown0x0C; // Always 1
|
|
public Array30<byte> Unknown0x10; // Always 0
|
|
}
|
|
} |