aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS
AgeCommit message (Collapse)Author
2022-11-24ui: Fixes disposing on GTK/Avalonia and Firmware Messages on Avalonia (#3885)Ac_K
* ui: Only wait on _exitEvent when MainLoop is active under GTK This fixes a dispose issue under Horizon/GTK, we don't check if the ApplicationClient is null so it throw NCE. We don't check if the main loop is active and waiting an event which is set in the main loop... So that could lead to a freeze. Everything works fine in GTK now. Related issue: https://github.com/Ryujinx/Ryujinx/issues/3873 As a side note, same kind of issue appear in Avalonia UI too. Firmware's popup doesn't show anything and the emulator just freeze. * TSRBerry's change Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Fix Avalonia crashing/freezing * Add Avalonia OpenGL fixes * Fix firmware popup on windows * Fixes everything * Add _initialized bool to VulkanRenderer and OpenGL Window Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
2022-11-23Update to LibHac 0.17.0 (#3878)Alex Barney
* Update to LibHac 0.17.0 * Don't clear SD card saves when starting the emulator This was an old workaround for errors that happened when a user's SD card encryption seed changed. SD card saves have been unencrypted for over a year, so we should be fine to remove the workaround.
2022-11-23Stub IFriendService: 1 (Cancel) (#3841)WilliamWsyHK
* Add friend/Cancel. Closes #3824 * Update according to review comments. * Add comment base on request * Update Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs Co-authored-by: Ac_K <Acoustik666@gmail.com>
2022-11-18am: Stub GetSaveDataSizeMax (#3857)TSRBerry
* am: Stub GetSaveDataSizeMax() * am: Remove todo comment for GetSaveDataSizeMax() * am: saveDataSize & journalDataSize should be of type long * am: Add explanation for returning default values in GetSaveDataSizeMax()
2022-11-16Prevent raw Unicode control codes from showing on software keyboard applet. ↵Logan Stromberg
(#3845) * Revert "Add support for releasing a semaphore to DmaClass (#2926)" This reverts commit 521a07e6125d3a5d9781512639387a9be5f09107. * Revert "Revert "Add support for releasing a semaphore to DmaClass (#2926)"" This reverts commit ec8a5fd05362f04cc77436ee3e45a9188777f75e. * Strip non-visible control codes from strings before they are sent to the software keyboard to prevent ugly unicode blocks from being shown on the UI. * remove debugging junk * Initialize stringbuilder capacity at the start to prevent resizing (a tiny tiny microoptimization) * Update remarks documentation. Remove unneeded imports. * Removing a test that's actually just redundant Co-authored-by: Logan Stromberg <lostromb@microsoft.com>
2022-11-16Update units of memory from decimal to binary prefixes (#3716)Wunk
`MB` and `GB` can either be interpreted as having base-10 units, or base-2. `MiB` and `GiB` removes this discrepancy so that units of memory are always interpreted using base-2 units.
2022-11-16Use new C# 11 u8 string literals (#3854)Berkan Diler
2022-11-16Make use of Random.Shared (#3852)Berkan Diler
2022-11-09infra: Migrate to .NET 7 (#3795)Mary-nyan
* Update readme to mention .NET 7 * infra: Migrate to .NET 7 .NET 7 is still in preview but this prepare for the release coming up next month. * Use Random.Shared in CreateRandom * Move UInt128Utils.cs to Ryujinx.Common project * Fix inverted parameters in System.UInt128 constructor * Fix Visual Studio complains on Ryujinx.Graphics.Vic * time: Fix missing alignment enforcement in SystemClockContext Fixes at least Smash * time: Fix missing alignment enforcement in SteadyClockContext Fix games (like recent version of Smash) using time shared memory * Switch to .NET 7.0.100 release * Enable Tiered PGO * Ensure CreateId validity requirements are meet when doing random generation Also enforce correct packing layout for other Mii structures. This fix a Mario Kart 8 crashes related to the default Miis.
2022-10-27AppletAE: stub SetRecordVolumeMuted (#3804)Luke Warner
* Update IIrSensorServer.cs * Update IIrSensorServer.cs * Apply suggestions from code review Addressed formatting feedback Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update IIrSensorServer.cs * Update ISelfController.cs * Update ISelfController.cs Co-authored-by: Ac_K <Acoustik666@gmail.com>
2022-10-27hid/irs: Stub StopImageProcessorAsync (#3799)Luke Warner
* Update IIrSensorServer.cs * Update IIrSensorServer.cs * Apply suggestions from code review Addressed formatting feedback Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update IIrSensorServer.cs Co-authored-by: Ac_K <Acoustik666@gmail.com>
2022-10-19Implement the GetSessionCacheMode in SSL servuce (#3735)WilliamWsyHK
2022-10-19Manage state of NfcManager (#3678)Carl Ouellette
* Manage state of NfcManager Very basic state management but works with Hyrule Warriors Definitive Edition. Partially fixes #2122 * Fixes changes from review
2022-10-18Avoid allocations in .Parse methods (#3760)Berkan Diler
* Avoid allocations in .Parse methods Use the Span overloads of the Parse methods when possible to avoid string allocations and remove one unnecessarry array allocation * Avoid another string allocation
2022-10-17Fix kernel VA allocation when random allocation fails (#3755)gdkchan
* Fix kernel VA allocation when random allocation fails * This was off by one
2022-10-17Implement OpenDataStorageWithProgramIndex partially (#3765)gdkchan
* Implement OpenDataStorageWithProgramIndex partially * Was not supposed to change this
2022-10-16TamperMachine: Fix input mask check (#3764)mageven
2022-10-15bsd: Check if socket is bound before calling RecvFrom() (#3761)TSRBerry
2022-10-05Change NvMap ID allocation to match nvservices (#3741)gdkchan
* Change NvMap ID allocation to match nvservices * Move NvMapIdDictionary to Types
2022-10-04Fix memory corruption in BCAT and FS Read methods when buffer is larger than ↵gdkchan
needed (#3739) * Fix memory corruption in FS Read methods when buffer is larger than needed * PR feedback * nit: Don't move this around
2022-10-02Allow Surface Flinger frame enqueue after process has exited (#3733)gdkchan
2022-10-02fatal: Implement Service (#3573)Ac_K
* fatal: Implement Service This PR adds a basic implementation of fatal service, guest processes call it when there is something wrong. But since we can already have all informations by debugging it's not really useful. In any case, that's avoid an unimplemented service exception. Structs/Enum are based on Atmosphère source code. After logs the error report, I call SvcBreak. Feedbacks are welcome on this, since some guests calls it right after fatal service so I can remove it if needed. * Addresses gdkchan feedback
2022-09-29Fix SSL GetCertificates with certificate ID set to All (#3727)gdkchan
* Fix SSL GetCertificates with certificate ID set to All * Fix last entry status value
2022-09-27Fix ListOpenContextStoredUsers and stub LoadOpenContext (#3718)gdkchan
* Fix ListOpenContextStoredUsers and stub LoadOpenContext * Remove nonsensical comment
2022-09-10Allocate work buffer for audio renderer instead of using guest supplied ↵gdkchan
memory (#3276) * Allocate work buffer for audio renderer instead of using guest supplied memory * Typo * Use GC.AllocateArray to allocate pinned array
2022-09-07bsd: improve socket pollMary
We should report errors even when not requested. This also ensure we only clear the bits that were requested on the output. Finally, this fix when input events is 0.
2022-09-07bsd: implement SendMMsg and RecvMMsg (#3660)Mary-nyan
* bsd: implement sendmmsg and recvmmsg * Fix wrong increment of vlen
2022-09-01Bsd: Fix NullReferenceException in BsdSockAddr.FromIPEndPoint() (#3652)TSRBerry
* Bsd: Fix NullReferenceException in BsdSockAddr.FromIPEndPoint() Allows "Victor Vran Overkill Edition" to boot with guest internet access enabled. Thanks to EmulationFanatic for testing this for me! * Bsd: Return proper error code if RemoteEndPoint is null * Remove whitespace from empty line Co-authored-by: gdkchan <gab.dark.100@gmail.com> Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2022-09-01Change vsync signal to happen at 60hz, regardless of swap interval (#3642)riperiperi
* Change vsync signal to happen at 60hz, regardless of swap interval * Update Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs Co-authored-by: gdkchan <gab.dark.100@gmail.com> * Fix softlock when toggling vsync Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2022-09-01bsd: Fix Poll(0) returning ETIMEDOUT instead of SUCCESSMary
This was an oversight of the implementation.
2022-09-01sfdsnres: fix endianess issue for port serialisationMary
2022-08-31Address gdkchan's commentMary
2022-08-31account: Implement LoadNetworkServiceLicenseKindAsyncMary
This is needed to run Pokemon Legends Arceus 1.1.1 with guest internet enabled. The game still get stuck at loading screen.
2022-08-28Bsd: Fix ArgumentOutOfRangeException in SetSocketOption (#3633)TSRBerry
* Bsd: Fix ArgumentOutOfRangeException in SetSocketOption * Ensure option level is Socket before checking for SoLinger
2022-08-26Optimize kernel memory block lookup and consolidate RBTree implementations ↵gdkchan
(#3410) * Implement intrusive red-black tree, use it for HLE kernel block manager * Implement TreeDictionary using IntrusiveRedBlackTree * Implement IntervalTree using IntrusiveRedBlackTree * Implement IntervalTree (on Ryujinx.Memory) using IntrusiveRedBlackTree * Make PredecessorOf and SuccessorOf internal, expose Predecessor and Successor properties on the node itself * Allocation free tree node lookup
2022-08-26bsd: Fix Poll writting in input buffer (#3630)Mary-nyan
This is a very old oversight on our Poll implementation. This worked so far reliably because games and homebrews pass the same buffer as input and output.
2022-08-25pctl: Implement EndFreeCommunicationAc_K
This PR Implement `EndFreeCommunication` (checked by RE). Nothing more. Closes #2420
2022-08-18Removed unused usings. (#3593)Nicholas Rodine
* Removed unused usings. * Added back using, now that it's used. * Removed extra whitespace.
2022-08-15am: Stub SetWirelessPriorityMode, SetWirelessPriorityMode and ↵Ac_K
GetHdcpAuthenticationState (#3535) This PR some calls in `am` service: - ISelfController: SetWirelessPriorityMode, SaveCurrentScreenshot (Partially checked by RE). - ICommonStateGetter: GetHdcpAuthenticationState Close #1831 and close #3527
2022-08-15ControllerApplet: Override player counts when SingleMode is set (#3571)mageven
2022-08-11Rename ToSpan to AsSpan (#3556)gdkchan
2022-08-03Sfdnsres; Stub ResolverSetOptionRequest (#3493)Ac_K
This PR stub ResolverSetOptionRequest (checked by RE), but the options parsing is still missing since we don't support it in our current code. (Close #3479)
2022-07-29Avalonia: Another Cleanup (#3494)Ac_K
* Avalonia: Another Cleanup This PR is a cleanup to the avalonia code recently added: - Some XAML file are autoformatted like a previous PR. - Dlc is renamed to DownloadableContent (Locale exclude). - DownloadableContentManagerWindow is a bit improved (Fixes #3491). - Some nits here and there. * Fix GTK * Remove AttachDebugDevTools * Fix last warning * Fix JSON fields
2022-07-14BSD: Allow use of DontWait flag in Receive (#3462)Fruityloops
2022-07-12Handle the case where byte optionValues are sent to BSD (#3405)riperiperi
Some games and the Mario Odyssey Multiplayer mod do this. The SMO multiplayer mod also needs you to revert #3394 as it uses a blocking socket to receive (otherwise it hangs), and it doesn't seem to like being forced as non-blocking.
2022-07-06Fix Vi managed and stray layers open/close/destroy (#3438)gdkchan
* Fix Vi managed and stray layers open/close/destroy * OpenLayer should set the state to ManagedOpened
2022-07-03Stub GetTemperature (#3429)Ac_K
2022-06-29ui: Fix timezone abbreviation since #3361 (#3430)Mary
As title say
2022-06-24timezone: Fix regression caused by #3361 (#3418)Mary
Because of that PR, TimeZoneRule was bigger than 0x4000 thanks to a misuse of a constant. This commit address this issue and add a new unit test to ensure the size of TimeZoneRule is 0x4000 bytes. Also address suggestions that were lost on the original PR.
2022-06-24time: Make TimeZoneRule blittable and avoid copies (#3361)Mary
* time: Make TimeZoneRule blittable and avoid copies This drastically reduce overhead of using TimeZoneRule around the codebase. Effect on games is unknown * Add missing Box type * Ensure we clean the structure still This doesn't perform any copies * Address gdkchan's comments * Simplify Box