mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-11 06:36:40 +00:00
Fix private on some call (#733)
Since the reflection code didn't take care about `private`, this cause regression, so I have added the flag just in case and fix calls who are declared with `private` to `public`.
This commit is contained in:
parent
97d0c62423
commit
d5cc919369
5 changed files with 6 additions and 6 deletions
|
@ -53,7 +53,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
|
||||||
|
|
||||||
[Command(10)]
|
[Command(10)]
|
||||||
// GetImageSize() -> u32
|
// GetImageSize() -> u32
|
||||||
private ResultCode GetImageSize(ServiceCtx context)
|
public ResultCode GetImageSize(ServiceCtx context)
|
||||||
{
|
{
|
||||||
context.ResponseData.Write(_profilePictureStream.Length);
|
context.ResponseData.Write(_profilePictureStream.Length);
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
|
||||||
|
|
||||||
[Command(11)]
|
[Command(11)]
|
||||||
// LoadImage() -> (u32, buffer<bytes, 6>)
|
// LoadImage() -> (u32, buffer<bytes, 6>)
|
||||||
private ResultCode LoadImage(ServiceCtx context)
|
public ResultCode LoadImage(ServiceCtx context)
|
||||||
{
|
{
|
||||||
long bufferPosition = context.Request.ReceiveBuff[0].Position;
|
long bufferPosition = context.Request.ReceiveBuff[0].Position;
|
||||||
long bufferLen = context.Request.ReceiveBuff[0].Size;
|
long bufferLen = context.Request.ReceiveBuff[0].Size;
|
||||||
|
|
|
@ -93,7 +93,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud.AudioRenderer
|
||||||
|
|
||||||
[Command(3)]
|
[Command(3)]
|
||||||
// GetState() -> u32
|
// GetState() -> u32
|
||||||
private ResultCode GetState(ServiceCtx context)
|
public ResultCode GetState(ServiceCtx context)
|
||||||
{
|
{
|
||||||
context.ResponseData.Write((int)_playState);
|
context.ResponseData.Write((int)_playState);
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud
|
||||||
|
|
||||||
[Command(4)] // 4.0.0+
|
[Command(4)] // 4.0.0+
|
||||||
// GetAudioDeviceServiceWithRevisionInfo(nn::applet::AppletResourceUserId, u32) -> object<nn::audio::detail::IAudioDevice>
|
// GetAudioDeviceServiceWithRevisionInfo(nn::applet::AppletResourceUserId, u32) -> object<nn::audio::detail::IAudioDevice>
|
||||||
private ResultCode GetAudioDeviceServiceWithRevisionInfo(ServiceCtx context)
|
public ResultCode GetAudioDeviceServiceWithRevisionInfo(ServiceCtx context)
|
||||||
{
|
{
|
||||||
long appletResourceUserId = context.RequestData.ReadInt64();
|
long appletResourceUserId = context.RequestData.ReadInt64();
|
||||||
int revisionInfo = context.RequestData.ReadInt32();
|
int revisionInfo = context.RequestData.ReadInt32();
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace Ryujinx.HLE.HOS.Services
|
||||||
{
|
{
|
||||||
Commands = Assembly.GetExecutingAssembly().GetTypes()
|
Commands = Assembly.GetExecutingAssembly().GetTypes()
|
||||||
.Where(type => type == GetType())
|
.Where(type => type == GetType())
|
||||||
.SelectMany(type => type.GetMethods(BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public))
|
.SelectMany(type => type.GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public))
|
||||||
.SelectMany(methodInfo => methodInfo.GetCustomAttributes(typeof(CommandAttribute))
|
.SelectMany(methodInfo => methodInfo.GetCustomAttributes(typeof(CommandAttribute))
|
||||||
.Select(command => (((CommandAttribute)command).Id, methodInfo)))
|
.Select(command => (((CommandAttribute)command).Id, methodInfo)))
|
||||||
.ToDictionary(command => command.Id, command => command.methodInfo);
|
.ToDictionary(command => command.Id, command => command.methodInfo);
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace Ryujinx.HLE.HOS.Services.Lr
|
||||||
|
|
||||||
[Command(0)]
|
[Command(0)]
|
||||||
// OpenLocationResolver()
|
// OpenLocationResolver()
|
||||||
private ResultCode OpenLocationResolver(ServiceCtx context)
|
public ResultCode OpenLocationResolver(ServiceCtx context)
|
||||||
{
|
{
|
||||||
StorageId storageId = (StorageId)context.RequestData.ReadByte();
|
StorageId storageId = (StorageId)context.RequestData.ReadByte();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue