Merge branch 'master' into xinput

This commit is contained in:
Starlet 2018-06-10 21:05:33 -04:00 committed by GitHub
commit 5a58cac08a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
249 changed files with 2287 additions and 2255 deletions

View file

@ -59,13 +59,13 @@ If you have some homebrew that currently doesn't work within the emulator, you c
**Contact**
For help, support, suggestions, or if you just want to get in touch with the team; join our Discord server!
For help, support, suggestions, or if you just want to get in touch with the team; join our Discord server!
https://discord.gg/VkQYXAZ
**Running**
To run this emulator, you need the .NET Core 2.0 (or higher) SDK.
Run `dotnet run -c Release -- path\to\homebrew.nro` inside the Ryujinx solution folder to run homebrew apps.
To run this emulator, you need the .NET Core 2.1 (or higher) SDK *and* the OpenAL 11 Core SDK.
Run `dotnet run -c Release -- path\to\homebrew.nro` inside the Ryujinx solution folder to run homebrew apps.
Run `dotnet run -c Release -- path\to\game_exefs_and_romfs_folder` to run official games (they need to be decrypted and extracted first!)
**Compatibility**
@ -73,5 +73,5 @@ You can check out the compatibility list within the Wiki. Only a handful of game
**Latest build**
These builds are compiled automatically for each commit on the master branch. They may be unstable or not work at all.
To download the latest automatic build for Windows (64-bits), [Click Here](https://ci.appveyor.com/api/projects/gdkchan/ryujinx/artifacts/ryujinx_latest_unstable.zip?pr=false).
These builds are compiled automatically for each commit on the master branch. They may be unstable or might not work at all.
The latest automatic build for Windows (64-bit) can be found on the [official website](https://ryujinx.org/#/Build).

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class BlockLinearSwizzle : ISwizzle
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
interface INvGpuEngine
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
interface ISwizzle
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class LinearSwizzle : ISwizzle
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class MacroInterpreter
{

View file

@ -1,7 +1,7 @@
using Ryujinx.Graphics.Gal;
using System.Threading;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class NvGpu
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
enum NvGpuBufferType
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
enum NvGpuEngine
{

View file

@ -1,7 +1,7 @@
using Ryujinx.Graphics.Gal;
using System.Collections.Generic;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class NvGpuEngine2d : INvGpuEngine
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
enum NvGpuEngine2dReg
{

View file

@ -2,7 +2,7 @@ using Ryujinx.Graphics.Gal;
using System;
using System.Collections.Generic;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class NvGpuEngine3d : INvGpuEngine
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
enum NvGpuEngine3dReg
{

View file

@ -1,6 +1,6 @@
using System.Collections.Concurrent;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class NvGpuFifo
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
enum NvGpuFifoMeth
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
delegate void NvGpuMethod(NvGpuVmm Vmm, NvGpuPBEntry PBEntry);
}

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.ObjectModel;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
struct NvGpuPBEntry
{

View file

@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.IO;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
static class NvGpuPushBuffer
{

View file

@ -2,7 +2,7 @@ using ChocolArm64.Memory;
using Ryujinx.Graphics.Gal;
using System.Collections.Concurrent;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class NvGpuVmm : IAMemory, IGalMemory
{

View file

@ -2,7 +2,7 @@ using ChocolArm64.Memory;
using System;
using System.Collections.Generic;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
class NvGpuVmmCache
{

View file

@ -1,6 +1,6 @@
using Ryujinx.Graphics.Gal;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
struct Texture
{

View file

@ -1,7 +1,7 @@
using Ryujinx.Graphics.Gal;
using System;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
static class TextureFactory
{

View file

@ -2,7 +2,7 @@ using ChocolArm64.Memory;
using Ryujinx.Graphics.Gal;
using System;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
static class TextureHelper
{

View file

@ -2,7 +2,7 @@ using ChocolArm64.Memory;
using Ryujinx.Graphics.Gal;
using System;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
static class TextureReader
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
enum TextureSwizzle
{

View file

@ -2,7 +2,7 @@ using ChocolArm64.Memory;
using Ryujinx.Graphics.Gal;
using System;
namespace Ryujinx.Core.Gpu
namespace Ryujinx.HLE.Gpu
{
static class TextureWriter
{

View file

@ -1,9 +1,10 @@
using ChocolArm64.Memory;
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle;
using Ryujinx.HLE.OsHle.Handles;
using System;
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
public class Hid
{
@ -85,11 +86,16 @@ namespace Ryujinx.Core.Input
{
ShMemPositions = SharedMem.GetVirtualPositions();
(AMemory Memory, long Position) ShMem = ShMemPositions[ShMemPositions.Length - 1];
(AMemory Memory, long Position) = ShMemPositions[ShMemPositions.Length - 1];
Log.PrintInfo(LogClass.Hid, $"HID shared memory successfully mapped to 0x{ShMem.Position:x16}!");
for (long Offset = 0; Offset < Horizon.HidSize; Offset += 8)
{
Memory.WriteInt64Unchecked(Position + Offset, 0);
}
Init(ShMem.Memory, ShMem.Position);
Log.PrintInfo(LogClass.Hid, $"HID shared memory successfully mapped to 0x{Position:x16}!");
Init(Memory, Position);
}
}
@ -186,18 +192,22 @@ namespace Ryujinx.Core.Input
ControllerOffset += HidControllersLayoutHeaderSize;
long LastEntryOffset = ControllerOffset + LastEntry * HidControllersInputEntrySize;
ControllerOffset += CurrEntry * HidControllersInputEntrySize;
Memory.WriteInt64Unchecked(ControllerOffset + 0x0, Timestamp);
Memory.WriteInt64Unchecked(ControllerOffset + 0x8, Timestamp);
long SampleCounter = Memory.ReadInt64Unchecked(LastEntryOffset) + 1;
Memory.WriteInt64Unchecked(ControllerOffset + 0x0, SampleCounter);
Memory.WriteInt64Unchecked(ControllerOffset + 0x8, SampleCounter);
Memory.WriteInt64Unchecked(ControllerOffset + 0x10, (uint)Buttons);
Memory.WriteInt32Unchecked(ControllerOffset + 0x18, LeftStick.DX);
Memory.WriteInt32Unchecked(ControllerOffset + 0x1c, LeftStick.DY);
Memory.WriteInt64Unchecked(ControllerOffset + 0x20, RightStick.DX);
Memory.WriteInt64Unchecked(ControllerOffset + 0x24, RightStick.DY);
Memory.WriteInt32Unchecked(ControllerOffset + 0x20, RightStick.DX);
Memory.WriteInt32Unchecked(ControllerOffset + 0x24, RightStick.DY);
Memory.WriteInt64Unchecked(ControllerOffset + 0x28,
(uint)HidControllerConnState.Controller_State_Connected |

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
[Flags]
public enum HidControllerButtons

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
[Flags]
public enum HidControllerColorDesc

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
[Flags]
public enum HidControllerConnState

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
public enum HidControllerId
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
public enum HidControllerLayouts
{

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
[Flags]
public enum HidControllerType

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
public struct HidJoystickPosition
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
public struct HidTouchPoint
{

View file

@ -1,5 +1,5 @@
//TODO: This is only used by Config, it doesn't belong to Core.
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
public struct JoyConLeft
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Input
namespace Ryujinx.HLE.Input
{
public enum JoyConColor //Thanks to CTCaer
{

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.Loaders.Compression
namespace Ryujinx.HLE.Loaders.Compression
{
static class Lz4
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
struct ElfDyn
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
enum ElfDynTag
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
struct ElfRel
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
enum ElfRelType
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
struct ElfSym
{
@ -12,7 +12,7 @@ namespace Ryujinx.Core.Loaders
Type == ElfSymType.STT_FUNC ||
Type == ElfSymType.STT_OBJECT;
public bool IsGlobalOrWeak =>
public bool IsGlobalOrWeak =>
Binding == ElfSymBinding.STB_GLOBAL ||
Binding == ElfSymBinding.STB_WEAK;
@ -22,7 +22,7 @@ namespace Ryujinx.Core.Loaders
public ElfSym(
string Name,
int Info,
int Info,
int Other,
int SHIdx,
long Value,

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
enum ElfSymBinding
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
enum ElfSymType
{

View file

@ -1,10 +1,10 @@
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
enum ElfSymVisibility
{
STV_DEFAULT = 0,
STV_INTERNAL = 1,
STV_HIDDEN = 2,
STV_PROTECTED = 3
STV_PROTECTED = 3
}
}

View file

@ -1,9 +1,9 @@
using ChocolArm64.Memory;
using Ryujinx.Core.Loaders.Executables;
using Ryujinx.Core.OsHle;
using Ryujinx.HLE.Loaders.Executables;
using Ryujinx.HLE.OsHle;
using System.Collections.Generic;
namespace Ryujinx.Core.Loaders
namespace Ryujinx.HLE.Loaders
{
class Executable
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Loaders.Executables
namespace Ryujinx.HLE.Loaders.Executables
{
public interface IExecutable
{

View file

@ -1,6 +1,6 @@
using System.IO;
namespace Ryujinx.Core.Loaders.Executables
namespace Ryujinx.HLE.Loaders.Executables
{
class Nro : IExecutable
{

View file

@ -1,8 +1,8 @@
using Ryujinx.Core.Loaders.Compression;
using Ryujinx.HLE.Loaders.Compression;
using System;
using System.IO;
namespace Ryujinx.Core.Loaders.Executables
namespace Ryujinx.HLE.Loaders.Executables
{
class Nso : IExecutable
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Logging
namespace Ryujinx.HLE.Logging
{
public enum LogClass
{

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.Logging
namespace Ryujinx.HLE.Logging
{
public class LogEventArgs : EventArgs
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.Logging
namespace Ryujinx.HLE.Logging
{
public enum LogLevel
{

View file

@ -2,7 +2,7 @@ using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace Ryujinx.Core.Logging
namespace Ryujinx.HLE.Logging
{
public class Logger
{

View file

@ -1,9 +1,9 @@
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.Core.OsHle.Services.Am;
using Ryujinx.HLE.OsHle.Handles;
using Ryujinx.HLE.OsHle.Services.Am;
using System;
using System.Collections.Concurrent;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
class AppletStateMgr : IDisposable
{

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
namespace Ryujinx.Core.OsHle.Diagnostics
namespace Ryujinx.HLE.OsHle.Diagnostics
{
static class Demangler
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
static class ErrorCode
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
enum ErrorModule
{

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.OsHle.Exceptions
namespace Ryujinx.HLE.OsHle.Exceptions
{
public class GuestBrokeExecutionException : Exception
{

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.OsHle.Exceptions
namespace Ryujinx.HLE.OsHle.Exceptions
{
public class UndefinedInstructionException : Exception
{

View file

@ -1,7 +1,7 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
class GlobalStateTable
{

View file

@ -2,7 +2,7 @@ using ChocolArm64.Memory;
using System;
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class HSharedMem
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Memory;
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class HTransferMem
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class KEvent : KSynchronizationObject { }
}

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class KProcessHandleTable
{

View file

@ -1,9 +1,9 @@
using Ryujinx.Core.Logging;
using Ryujinx.HLE.Logging;
using System;
using System.Collections.Concurrent;
using System.Threading;
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class KProcessScheduler : IDisposable
{

View file

@ -1,7 +1,7 @@
using Ryujinx.Core.OsHle.Services;
using Ryujinx.HLE.OsHle.Services;
using System;
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class KSession : IDisposable
{

View file

@ -1,7 +1,7 @@
using System;
using System.Threading;
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class KSynchronizationObject : IDisposable
{

View file

@ -1,7 +1,7 @@
using ChocolArm64;
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class KThread : KSynchronizationObject
{

View file

@ -1,7 +1,7 @@
using System;
using System.Threading;
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class SchedulerThread : IDisposable
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Handles
namespace Ryujinx.HLE.OsHle.Handles
{
class ThreadQueue
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Memory;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
static class Homebrew
{

View file

@ -1,11 +1,11 @@
using Ryujinx.Core.Loaders.Executables;
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.HLE.Loaders.Executables;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Handles;
using System;
using System.Collections.Concurrent;
using System.IO;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
public class Horizon : IDisposable
{

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
class IdDictionary
{

View file

@ -1,6 +1,6 @@
using System.IO;
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
struct IpcBuffDesc
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
class IpcHandleDesc
{

View file

@ -1,9 +1,9 @@
using ChocolArm64.Memory;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.HLE.OsHle.Handles;
using System;
using System.IO;
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
static class IpcHandler
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
abstract class IpcMagic
{

View file

@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.IO;
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
class IpcMessage
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
enum IpcMessageType
{

View file

@ -1,6 +1,6 @@
using System.IO;
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
struct IpcPtrBuffDesc
{

View file

@ -1,6 +1,6 @@
using System.IO;
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
struct IpcRecvListBuffDesc
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Ipc
namespace Ryujinx.HLE.OsHle.Ipc
{
delegate long ServiceProcessRequest(ServiceCtx Context);
}

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Kernel
namespace Ryujinx.HLE.OsHle.Kernel
{
static class KernelErr
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Kernel
namespace Ryujinx.HLE.OsHle.Kernel
{
static class NsTimeConverter
{

View file

@ -1,14 +1,14 @@
using ChocolArm64.Events;
using ChocolArm64.Memory;
using ChocolArm64.State;
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Handles;
using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
namespace Ryujinx.Core.OsHle.Kernel
namespace Ryujinx.HLE.OsHle.Kernel
{
partial class SvcHandler : IDisposable
{

View file

@ -1,11 +1,11 @@
using ChocolArm64.Memory;
using ChocolArm64.State;
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Handles;
using static Ryujinx.Core.OsHle.ErrorCode;
using static Ryujinx.HLE.OsHle.ErrorCode;
namespace Ryujinx.Core.OsHle.Kernel
namespace Ryujinx.HLE.OsHle.Kernel
{
partial class SvcHandler
{

View file

@ -1,16 +1,16 @@
using ChocolArm64.Memory;
using ChocolArm64.State;
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Exceptions;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.Core.OsHle.Ipc;
using Ryujinx.Core.OsHle.Services;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Exceptions;
using Ryujinx.HLE.OsHle.Handles;
using Ryujinx.HLE.OsHle.Ipc;
using Ryujinx.HLE.OsHle.Services;
using System;
using System.Threading;
using static Ryujinx.Core.OsHle.ErrorCode;
using static Ryujinx.HLE.OsHle.ErrorCode;
namespace Ryujinx.Core.OsHle.Kernel
namespace Ryujinx.HLE.OsHle.Kernel
{
partial class SvcHandler
{
@ -352,7 +352,7 @@ namespace Ryujinx.Core.OsHle.Kernel
case 15:
ThreadState.X1 = MemoryRegions.MapRegionSize;
break;
case 16:
ThreadState.X1 = IsVirtualMemoryEnabled ? 1 : 0;
break;

View file

@ -1,11 +1,11 @@
using ChocolArm64.State;
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Handles;
using System.Threading;
using static Ryujinx.Core.OsHle.ErrorCode;
using static Ryujinx.HLE.OsHle.ErrorCode;
namespace Ryujinx.Core.OsHle.Kernel
namespace Ryujinx.HLE.OsHle.Kernel
{
partial class SvcHandler
{
@ -160,7 +160,7 @@ namespace Ryujinx.Core.OsHle.Kernel
ThreadState.X0 = MakeError(ErrorModule.Kernel, KernelErr.InvalidHandle);
}
}
private void SvcSetThreadCoreMask(AThreadState ThreadState)
{
//FIXME: This is wrong, but the "correct" way to handle

View file

@ -1,14 +1,14 @@
using ChocolArm64.State;
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Handles;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using static Ryujinx.Core.OsHle.ErrorCode;
using static Ryujinx.HLE.OsHle.ErrorCode;
namespace Ryujinx.Core.OsHle.Kernel
namespace Ryujinx.HLE.OsHle.Kernel
{
partial class SvcHandler
{

View file

@ -1,6 +1,6 @@
using System;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
class MemoryAllocator
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Memory;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
static class MemoryRegions
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
enum MemoryType
{

View file

@ -2,20 +2,20 @@ using ChocolArm64;
using ChocolArm64.Events;
using ChocolArm64.Memory;
using ChocolArm64.State;
using Ryujinx.Core.Loaders;
using Ryujinx.Core.Loaders.Executables;
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Diagnostics;
using Ryujinx.Core.OsHle.Exceptions;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.Core.OsHle.Kernel;
using Ryujinx.Core.OsHle.Services.Nv;
using Ryujinx.HLE.Loaders;
using Ryujinx.HLE.Loaders.Executables;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Diagnostics;
using Ryujinx.HLE.OsHle.Exceptions;
using Ryujinx.HLE.OsHle.Handles;
using Ryujinx.HLE.OsHle.Kernel;
using Ryujinx.HLE.OsHle.Services.Nv;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
class Process : IDisposable
{

View file

@ -1,9 +1,9 @@
using ChocolArm64.Memory;
using Ryujinx.Core.OsHle.Handles;
using Ryujinx.Core.OsHle.Ipc;
using Ryujinx.HLE.OsHle.Handles;
using Ryujinx.HLE.OsHle.Ipc;
using System.IO;
namespace Ryujinx.Core.OsHle
namespace Ryujinx.HLE.OsHle
{
class ServiceCtx
{

View file

@ -1,8 +1,8 @@
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Ipc;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Ipc;
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle.Services.Acc
namespace Ryujinx.HLE.OsHle.Services.Acc
{
class IAccountServiceForApplication : IpcService
{
@ -33,7 +33,7 @@ namespace Ryujinx.Core.OsHle.Services.Acc
return 0;
}
public long GetUserExistence(ServiceCtx Context)
{
Context.ResponseData.Write(1);
@ -49,7 +49,7 @@ namespace Ryujinx.Core.OsHle.Services.Acc
return 0;
}
public long ListOpenUsers(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceAcc, "Stubbed.");

View file

@ -1,8 +1,8 @@
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Ipc;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Ipc;
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle.Services.Acc
namespace Ryujinx.HLE.OsHle.Services.Acc
{
class IManagerForApplication : IpcService
{

View file

@ -1,8 +1,8 @@
using Ryujinx.Core.Logging;
using Ryujinx.Core.OsHle.Ipc;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Ipc;
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle.Services.Acc
namespace Ryujinx.HLE.OsHle.Services.Acc
{
class IProfile : IpcService
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Services.Am
namespace Ryujinx.HLE.OsHle.Services.Am
{
static class AmErr
{

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Core.OsHle.Services.Am
namespace Ryujinx.HLE.OsHle.Services.Am
{
enum FocusState
{

Some files were not shown because too many files have changed in this diff Show more