aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Svc/SvcSystem.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-03-15 21:06:24 -0300
committerGitHub <noreply@github.com>2018-03-15 21:06:24 -0300
commit79a59397349b40758fc75cd2e19c67726a77e975 (patch)
tree4597fcdf8d8d6886df88c00650b7d924c7fc16fe /Ryujinx.Core/OsHle/Svc/SvcSystem.cs
parent92f47d535e7c3b350c25499dec5e91d8be5544bc (diff)
Improvements to audout (#58)
* Some audout refactoring and improvements * More audio improvements * Change ReadAsciiString to use long for the Size, avoids some casting
Diffstat (limited to 'Ryujinx.Core/OsHle/Svc/SvcSystem.cs')
-rw-r--r--Ryujinx.Core/OsHle/Svc/SvcSystem.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Core/OsHle/Svc/SvcSystem.cs b/Ryujinx.Core/OsHle/Svc/SvcSystem.cs
index 671a32d3..9417473c 100644
--- a/Ryujinx.Core/OsHle/Svc/SvcSystem.cs
+++ b/Ryujinx.Core/OsHle/Svc/SvcSystem.cs
@@ -118,7 +118,7 @@ namespace Ryujinx.Core.OsHle.Svc
Process.Scheduler.Suspend(CurrThread.ProcessorId);
- byte[] CmdData = AMemoryHelper.ReadBytes(Memory, CmdPtr, (int)Size);
+ byte[] CmdData = AMemoryHelper.ReadBytes(Memory, CmdPtr, Size);
HSession Session = Process.HandleTable.GetData<HSession>(Handle);
@@ -136,7 +136,7 @@ namespace Ryujinx.Core.OsHle.Svc
CmdPtr,
Handle);
- byte[] Response = AMemoryHelper.ReadBytes(Memory, CmdPtr, (int)Size);
+ byte[] Response = AMemoryHelper.ReadBytes(Memory, CmdPtr, Size);
ThreadState.X0 = 0;
}
@@ -164,7 +164,7 @@ namespace Ryujinx.Core.OsHle.Svc
long Position = (long)ThreadState.X0;
long Size = (long)ThreadState.X1;
- string Str = AMemoryHelper.ReadAsciiString(Memory, Position, (int)Size);
+ string Str = AMemoryHelper.ReadAsciiString(Memory, Position, Size);
Logging.Info($"SvcOutputDebugString: {Str}");