aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-03-02 22:49:17 -0300
committerGitHub <noreply@github.com>2018-03-02 22:49:17 -0300
commitc14c69a10c936f485a4420c93499bd4c3efa8b09 (patch)
treec83af4bfc35dc65e229c6185fd54d961fb8bb768 /Ryujinx.Core/OsHle
parentefef605b260119642fa023c8488fb3ff4501cafd (diff)
Refactor HID, fix issues (#48)
* Refactor HID, fix issues * Fix on touch screen code with wrong offset * Don't use magic values * Replace more magic values with actual variables, fix touch screen coordinates on different window sizes
Diffstat (limited to 'Ryujinx.Core/OsHle')
-rw-r--r--Ryujinx.Core/OsHle/Process.cs10
-rw-r--r--Ryujinx.Core/OsHle/Svc/SvcMemory.cs2
2 files changed, 12 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/Process.cs b/Ryujinx.Core/OsHle/Process.cs
index f0b568c8..84a21a8c 100644
--- a/Ryujinx.Core/OsHle/Process.cs
+++ b/Ryujinx.Core/OsHle/Process.cs
@@ -242,6 +242,16 @@ namespace Ryujinx.Core.OsHle
Logging.Trace($"Executing at 0x{e.Position:x16} {e.SubName}");
}
+ public void EnableCpuTracing()
+ {
+ Translator.EnableCpuTrace = true;
+ }
+
+ public void DisableCpuTracing()
+ {
+ Translator.EnableCpuTrace = false;
+ }
+
private int GetFreeTlsSlot(AThread Thread)
{
for (int Index = 1; Index < TotalTlsSlots; Index++)
diff --git a/Ryujinx.Core/OsHle/Svc/SvcMemory.cs b/Ryujinx.Core/OsHle/Svc/SvcMemory.cs
index e7559a14..6969d379 100644
--- a/Ryujinx.Core/OsHle/Svc/SvcMemory.cs
+++ b/Ryujinx.Core/OsHle/Svc/SvcMemory.cs
@@ -121,6 +121,8 @@ namespace Ryujinx.Core.OsHle.Svc
if (SharedMem != null)
{
+ AMemoryHelper.FillWithZeros(Memory, Src, (int)Size);
+
SharedMem.AddVirtualPosition(Src);
Memory.Manager.Map(Src, Size, (int)MemoryType.SharedMemory, (AMemoryPerm)Perm);