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** **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 https://discord.gg/VkQYXAZ
**Running** **Running**
To run this emulator, you need the .NET Core 2.0 (or higher) SDK. 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\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!) 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** **Compatibility**
@ -73,5 +73,5 @@ You can check out the compatibility list within the Wiki. Only a handful of game
**Latest build** **Latest build**
These builds are compiled automatically for each commit on the master branch. They may be unstable or not work at all. These builds are compiled automatically for each commit on the master branch. They may be unstable or might 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). 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; using System;
namespace Ryujinx.Core.Gpu namespace Ryujinx.HLE.Gpu
{ {
class BlockLinearSwizzle : ISwizzle class BlockLinearSwizzle : ISwizzle
{ {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,10 @@
using ChocolArm64.Memory; using ChocolArm64.Memory;
using Ryujinx.Core.Logging; using Ryujinx.HLE.Logging;
using Ryujinx.Core.OsHle.Handles; using Ryujinx.HLE.OsHle;
using Ryujinx.HLE.OsHle.Handles;
using System; using System;
namespace Ryujinx.Core.Input namespace Ryujinx.HLE.Input
{ {
public class Hid public class Hid
{ {
@ -85,11 +86,16 @@ namespace Ryujinx.Core.Input
{ {
ShMemPositions = SharedMem.GetVirtualPositions(); 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; ControllerOffset += HidControllersLayoutHeaderSize;
long LastEntryOffset = ControllerOffset + LastEntry * HidControllersInputEntrySize;
ControllerOffset += CurrEntry * HidControllersInputEntrySize; ControllerOffset += CurrEntry * HidControllersInputEntrySize;
Memory.WriteInt64Unchecked(ControllerOffset + 0x0, Timestamp); long SampleCounter = Memory.ReadInt64Unchecked(LastEntryOffset) + 1;
Memory.WriteInt64Unchecked(ControllerOffset + 0x8, Timestamp);
Memory.WriteInt64Unchecked(ControllerOffset + 0x0, SampleCounter);
Memory.WriteInt64Unchecked(ControllerOffset + 0x8, SampleCounter);
Memory.WriteInt64Unchecked(ControllerOffset + 0x10, (uint)Buttons); Memory.WriteInt64Unchecked(ControllerOffset + 0x10, (uint)Buttons);
Memory.WriteInt32Unchecked(ControllerOffset + 0x18, LeftStick.DX); Memory.WriteInt32Unchecked(ControllerOffset + 0x18, LeftStick.DX);
Memory.WriteInt32Unchecked(ControllerOffset + 0x1c, LeftStick.DY); Memory.WriteInt32Unchecked(ControllerOffset + 0x1c, LeftStick.DY);
Memory.WriteInt64Unchecked(ControllerOffset + 0x20, RightStick.DX); Memory.WriteInt32Unchecked(ControllerOffset + 0x20, RightStick.DX);
Memory.WriteInt64Unchecked(ControllerOffset + 0x24, RightStick.DY); Memory.WriteInt32Unchecked(ControllerOffset + 0x24, RightStick.DY);
Memory.WriteInt64Unchecked(ControllerOffset + 0x28, Memory.WriteInt64Unchecked(ControllerOffset + 0x28,
(uint)HidControllerConnState.Controller_State_Connected | (uint)HidControllerConnState.Controller_State_Connected |

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,11 +1,11 @@
using ChocolArm64.Memory; using ChocolArm64.Memory;
using ChocolArm64.State; using ChocolArm64.State;
using Ryujinx.Core.Logging; using Ryujinx.HLE.Logging;
using Ryujinx.Core.OsHle.Handles; 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 partial class SvcHandler
{ {

View file

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

View file

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

View file

@ -1,14 +1,14 @@
using ChocolArm64.State; using ChocolArm64.State;
using Ryujinx.Core.Logging; using Ryujinx.HLE.Logging;
using Ryujinx.Core.OsHle.Handles; using Ryujinx.HLE.OsHle.Handles;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading; 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 partial class SvcHandler
{ {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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