0
0
Fork 0
Final commit before removal Historical purposes
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Thomas Guillemard 1aba033ba7 Update time implementation to 9.0.0 (#783)
* Fix 9.0.0 related services bindings

This was wrong because of a mistake on switchbrew.

* Fix wronog cmdid for ISteadyClock::GetTestOffset/SetTestOffset

* Update ClockCore logics to 9.0.0

Also apply 9.0.0 permissions and comment time:u, and time:a (as those
are going to be moved)

* Move every clocks instances + timezone to a global manager

* Start implementing time:m

Also prepare the skeleton of the shared memory

* Implement SystemClockContextUpdateCallback and co

* Update StaticService to 9.0.0

* Update ISystemClock to 9.0.0

* Rename IStaticService and add glue's IStaticService

* Implement psc's ITimeZoneService

* Integrate psc layer into glue for TimeZoneService

* Rename TimeZoneManagerForPsc => TimeZoneManager

* Use correct TimeZoneService interface for both StaticService implementations

* Accurately implement time shared memory operations

* Fix two critical flaws in TimeZone logic

The first one was the month range being different fron Nintendo one
(0-11 instead of 1-12)

The other flaw was a bad incrementation order during days & months
computation.

* Follow Nintendo's abort logic for TimeManager

* Avoid crashing when timezone sysarchive isn't present

* Update Readme

* Address comments

* Correctly align fields in ISystemClock

* Fix code style and some typos

* Improve timezone system archive warning/error messages

* Rearrange using definitions in Horizon.cs

* Address comments
2019-10-08 14:48:49 +11:00
.github Create FUNDING.yml 2019-06-02 02:09:38 +02:00
ARMeilleure Add Tbx Inst. (fast & slow paths), with Tests. (#782) 2019-10-04 11:43:20 -03:00
ChocolArm64 Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
Ryujinx Misc fixes (#772) 2019-09-19 20:59:48 -03:00
Ryujinx.Audio Fix a memory corruption in SoundIO wrapper (#742) 2019-08-19 22:28:14 +02:00
Ryujinx.Common Misc fixes (#772) 2019-09-19 20:59:48 -03:00
Ryujinx.Graphics shader: Add missing fsetp negation bit on srcB (#760) 2019-09-05 08:03:11 +10:00
Ryujinx.HLE Update time implementation to 9.0.0 (#783) 2019-10-08 14:48:49 +11:00
Ryujinx.LLE Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
Ryujinx.Profiler Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
Ryujinx.ShaderTools Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
Ryujinx.Tests Add Tbx Inst. (fast & slow paths), with Tests. (#782) 2019-10-04 11:43:20 -03:00
Ryujinx.Tests.Unicorn Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
.gitattributes aloha 2018-02-04 20:08:20 -03:00
.gitignore Implement ContentManager and related services (#438) 2018-11-18 17:37:41 -02:00
.travis.yml Add some tests (#18) 2018-02-15 21:04:38 -03:00
appveyor.yml Built in profiling (#567) 2019-04-26 14:53:10 +10:00
CONFIG.md Use the Joystick interface for game controller input. (#737) 2019-08-05 20:58:27 +02:00
KEYS.md Add XCI, NSP and NCA loading support (#404) 2018-09-08 15:33:27 -03:00
LICENSE.txt aloha 2018-02-04 20:08:20 -03:00
README.md Update time implementation to 9.0.0 (#783) 2019-10-08 14:48:49 +11:00
Ryujinx.sln Added GUI to Ryujinx (#695) 2019-09-02 13:03:57 -03:00
Ryujinx.sln.DotSettings Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00

Ryujinx

An Experimental Switch emulator written in C#

A lot of games boot, but only a handful are playable, see the compatiblity list here.

Usage

To run this emulator, you need the .NET Core 2.1 (or higher) SDK.

If you use a pre-built version, you can use the graphical interface to run your games/homebrew apps.

If you build it yourself you will need to:
Run dotnet run -c Release -- path\to\homebrew.nro inside the Ryujinx project folder to run homebrew apps.
Run dotnet run -c Release -- path\to\game.nsp/xci to run official games.

Every file related to Ryujinx is stored in the RyuFs folder. Located in C:\Users\USERNAME\AppData\Roaming\ for Windows, /home/USERNAME/.config for Linux or /Users/USERNAME/Library/Application Support/ for macOS.

Latest build

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, macOS, and Linux can be found on the Official Website.

Requirements

  • Switch Keys

    Everything on the Switch is encrypted, so if you want to run anything else, other than homebrews, you have to dump them from your console. To get more information please take a look at our Keys Documentation (Outdated)

  • Shared Fonts

    Some games draw text using fonts files, those are what is called Shared Fonts.
    All you have to do is Download them and extract those files in RyuFs\system\fonts.

  • FFmpeg Dependencies

    Ryujinx has a basic implementation of NVDEC (video decoder used by the Switch's GPU).
    Many games use videos that use NVDEC, so you need to download Zeranoe FFmpeg Builds for your system, and in Shared linking.
    When it's done, extract the bin folder directly into your Ryujinx folder.

  • System Titles

    Some of our System Modules implementation (like time) require System Data Archives.
    You can install them by mounting your nand partition using HacDiskMount and copy the content in RyuFs/nand/system.

  • Executables

    Ryujinx is able to run games or homebrews.
    You need a hacked Switch to dump them (Hack Guide).
    You need to dump your own games with NxDumpTool for XCI dump or SwitchSDTool for NSP dump.
    You can find homebrew on different related websites or on the Switch Appstore.

Features

  • Audio

    Everything for audio is partially supported. We currently use a C# wrapper for libsoundio and we support OpenAL (installation needed) too as a fallback. Our current Opus implementation is pretty incomplete.

  • CPU

    The CPU emulator emulates an ARMv8 CPU, and only the new 64-bits ARMv8 instructions are implemented (with a few instructions still missing). It translates the ARM code to a custom IR and then it performs a few optimizations and turns that into x86 code.
    To handle that we use our own JIT called ARMeilleure, which has the custom IR and compiles the code to x86.
    ChocolArm is the old ARM emulator, is being replaced by ARMeilleure (It can still be enabled inside the configuration menu/file) and it works by translating the ARM code to .NET IL. The runtime JIT then compiles that to the platform CPU code. On .NET Core, the JIT is called RyuJIT (hence the project name, Ryujinx).

  • GPU

    The GPU emulator emulates the Switch Maxwell GPU, using the OpenGL API (4.2 minimum) through a custom build of OpenTK.

  • Input

    We currently have Keyboard, Mouse, Touch, and JoyCon input support (emulated through the keyboard) and some controllers too. You can set-up everything inside the configuration menu/file.

  • Configuration

    The emulator has some options, like Dump shaders, Enabled/Disabled some Logging, Remap Controllers, Choose Controller, and more. You can set-up all of them through the graphical interface or manually through the Config File: Config.json.
    For more information you can go here (Outdated).

Compatibility

You can check out the compatibility list here.
Don't hesitate to open a new issue if a game isn't already on there.

Help

If you have homebrew that currently doesn't work within the emulator, you can contact us through our Discord with the compiled *.NRO / *.NSO (and source code if possible) and we'll take note of whatever is causing the app / game to not work, on the watch list and fix it at a later date.
If you need help for setting up Ryujinx, you can go to our Discord server too.

Contact

For contributions, help, support, and suggestions or if you just want to get in touch with the team; join our Discord server!
For donation support, please take a look at our Patreon.