Commit graph

2275 commits

Author SHA1 Message Date
Emmanuel Hansen
4135a34bec fix build id case issue for enabled cheats (#2970) 2024-02-22 19:16:10 -05:00
MutantAura
d3ae4ecb70 Implement analog stick range modifier (#2783)
* adjust position vector + GUI

* remove brackets

* Update configuration

* Update ConfigurationFileFormat.cs

* rebase + review changes

* spacing

* revert deletion

* fix profile loading

* spacing

* comment spacing
2024-02-22 19:16:10 -05:00
Ac_K
36a7425e16 ffmpeg: Add extra checks and error messages (#2951)
* ffmpeg: Add extra checks and error messages

This PR adds some checks and logging error messages related to the ffmpeg context creation, that will prevent users to open issues because they don't have the correct packages installed.
Close #2762

* Update FFmpegContext.cs
2024-02-22 19:16:10 -05:00
Emmanuel Hansen
9fe5121c1f Add Cheat Manager (#2964)
* add cheatmanager

* use modloader to load cheats for manager

* addressed nits
2024-02-22 19:16:10 -05:00
Mary
6685017808 misc: Improve DNS blacklist for Nintendo servers (#2963)
This blocks more that have been seen in the wild
2024-02-22 19:16:10 -05:00
gdkchan
f029307df0 Force crop when presentation cached texture size mismatches (#2957) 2024-02-22 19:16:10 -05:00
gdkchan
5c97c6949e Add support for the R4G4 texture format (#2956) 2024-02-22 19:16:10 -05:00
gdkchan
e29ffb9a64 Fix A1B5G5R5 format for good (#2955) 2024-02-22 19:16:10 -05:00
Ac_K
eefe062692 friend: Stub IsFriendListCacheAvailable and EnsureFriendListAvailable (#2949)
* friend: Stub IsFriendListCacheAvailable and EnsureFriendListAvailable

This PR stubs IsFriendListCacheAvailable and EnsureFriendListAvailable call of friend service which close #2896.

Sadly, Super Bomberman R Online is still stuck on the loading screen and keep calling `TryPopFromFriendInvitationStorageChannel`, probably because another issue somewhere.

* Add FW version

* Apply suggestions from gdkchan

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Update IFriendService.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-02-22 19:16:10 -05:00
Ac_K
4000ad0ce7 am: Stub SetMediaPlaybackStateForApplication (#2952)
This PR stub `SetMediaPlaybackStateForApplication` of the am service. Accordingly to gdkchan it's needed by the Youtube app. This is checked by RE aswell.
2024-02-22 19:16:10 -05:00
Mary
d208c413bc kernel: Implement thread pinning support (#2840)
* kernel: Implement Thread pinning support

This commit adds support for 8.x thread pinning changes and implement SynchronizePreemptionState syscall.

Based on kernel 13.x reverse.

* Address gdkchan's comment

* kernel: fix missing critical section leave in SetActivity

Fix Unity games

* Implement missing bits on the interrupt handler and inline update pinning function as it cannot be generic

* Fix some bugs in SetActivity and SetCoreAndAffinityMask

* Address gdkchan's comments
2024-02-22 19:16:09 -05:00
gdkchan
0ddf130e6a Improve SocketOption handling (#2946) 2024-02-22 19:16:09 -05:00
Ac_K
ee589441fc hid: A little cleanup (#2950)
While I'm looking to the code, I've found some syntax issue, and a little inconsistencie between `ActivateNpad` and `ActivateNpadWithRevision`. Nothing more.
2024-02-22 19:16:09 -05:00
gdkchan
012feb7e98 Flip scissor box when the YNegate bit is set (#2941)
* Flip scissor box when the YNegate bit is set

* Flip scissor based on screen scissor state, account for negative scissor Y

* No need for abs when we already know the value is negative
2024-02-22 19:16:09 -05:00
gdkchan
4867383121 Fix GetHostByNameRequestWithOptions and GetHostByAddrRequestWithOptions (#2943) 2024-02-22 19:16:09 -05:00
gdkchan
f97d37e2ed Use minimum stream sample count on SDL2 audio backend (#2948) 2024-02-22 19:16:09 -05:00
gdkchan
5dbb2c2044 Fix wrong title language (#2933)
* Fix wrong title language

* Sort
2024-02-22 19:16:09 -05:00
gdkchan
0aa5e88c45 Fix DMA copy fast path line size when xCount < stride (#2942) 2024-02-22 19:16:09 -05:00
sharmander
a03b83c71c Fix missing default value of audio volume. (#2939) 2024-02-22 19:16:09 -05:00
gdkchan
cbb5a9087b Fix I2M texture copies when line length is not a multiple of 4 (#2938)
* Fix I2M texture copies when line length is not a multiple of 4

* Do not copy padding bytes for 1D copies

* Nit
2024-02-22 19:16:09 -05:00
gdkchan
80ec193984 Fix GetAddrInfoWithOptions and some sockets issues (#2936)
* Fix GetAddrInfoWithOptions and some sockets issues

* Was not supposed to remove this log
2024-02-22 19:16:09 -05:00
gdkchan
1f3463d72f Fix bug causing an audio buffer to be enqueued more than once (#2940) 2024-02-22 19:16:09 -05:00
Mary
1d9b85f24e Revert "sdl2: Update to Ryujinx.SDL2-CS 2.0.19 (#2907)"
This reverts commit 5dae02cfcb.
2024-02-22 19:16:09 -05:00
gdkchan
a60e9fb6dd Remove PortRemoteClosed warning (#2928) 2024-02-22 19:16:09 -05:00
Mary
92d1b365e1 misc: Update SPB to 0.0.4-build17 (#2903)
Update to a new SPB version targeting .NET 6.
2024-02-22 19:16:09 -05:00
Mary
e83ba702b8 sdl2: Update to Ryujinx.SDL2-CS 2.0.19 (#2907) 2024-02-22 19:16:09 -05:00
Alex Barney
67dd28898f Update to LibHac v0.14.3 (#2925)
* Update to LibHac v0.14.3

* Fix loading NCAs that don't have a data partition
2024-02-22 19:16:09 -05:00
sharmander
829f293e58 UI - Add Volume Controls + Mute Toggle (F2) (#2871)
* Add the ability to toggle mute in the status bar.

* Add the ability to toggle mute in the status bar.

* Formatting fixes

* Add hotkey (F2) to mute

* Add default hotkey to config.json

* Add ability to change volume via slider.

* Fix Headless

* Fix SDL2 Problem : Credits to d3xMachina

* Remove unnecessary work

* Address gdk comments

* Toggling with Hotkey now properly restores volume to original level.

* Toggling with Hotkey now properly restores volume to original level.

* Update UI to show Volume % instead of Muted/Unmuted

* Clean up the volume ui a bit.

* Undo unintentionally committed code.

* Implement AudRen Support

* Restore intiial volume level in function definition.

* Finalize UI

* Finalize UI

* Use clamp for bounds check

* Use Math.Clamp for volume in soundio

* Address comments by gdkchan

* Address remaining comments

* Fix missing semicolon

* Address remaining gdkchan comment

* Fix comment

* Change /* to //

* Allow volume slider to change volume immediately.
Also force label text to cast to int to prevent decimals from showing in status bar

* Remove blank line

* Undo setting of volume level when "Cancel" is pressed.

* Fix allignment for settings window code
2024-02-22 19:16:08 -05:00
gdkchan
9f345be945 Fix for texture pool not being updated when it should + buffer texture related fixes (#2911) 2024-02-22 19:16:08 -05:00
riperiperi
67d4f741e1 Add support for releasing a semaphore to DmaClass (#2926)
* Add support for releasing a semaphore to DmaClass

Fixes freezes in OpenGL games, primarily GameMaker ones such as Undertale.

* Address Feedback
2024-02-22 19:16:08 -05:00
gdkchan
d898fa76a5 Implement CSDB instruction (#2927) 2024-02-22 19:16:08 -05:00
VocalFan
d36d7b61dc Using more intense lossless compression. (#2811) 2024-02-22 19:16:08 -05:00
Mary
42ed672040 Remove debug configuration and schema (#2920)
The debug configuration can be created by the emulator and is an
artefact of the past.

I also took the liberty of removing the _schema.json file as most of the
time it is left unused/outdated.
2024-02-22 19:16:08 -05:00
Mary
ce979c1f53 Remove unused empty Ryujinx.Audio.Backends project (#2919) 2024-02-22 19:16:08 -05:00
Mary
a9d2c496a2 misc: Sync Config.json default debug config (#2904) 2024-02-22 19:16:08 -05:00
gdkchan
c24afa5f85 Fix SUATOM and other texture shader instructions with RZ dest (#2885)
* Fix SUATOM and other texture shader instructions with RZ dest

* Shader cache version bump
2024-02-22 19:16:08 -05:00
Mary
42e6af15aa Remove usage of Mono.Posix.NETStandard accross all projects (#2906)
* Remove usage of Mono.Posix.NETStandard in Ryujinx project

* Remove usage of Mono.Posix.NETStandard in ARMeilleure project

* Remove usage of Mono.Posix.NETStandard in Ryujinx.Memory project

* Address gdkchan's comments
2024-02-22 19:16:08 -05:00
riperiperi
935627f2ea Move texture anisotropy check to SetInfo (#2843)
Rather than calculating this for every sampler, this PR calculates if a texture can force anisotropy when its info is set, and exposes the value via a public boolean.

This should help texture/sampler heavy games when anisotropic filtering is not Auto, like UE4 ones (or so i hear?). There is another cost where samplers are created twice when anisotropic filtering is enabled, but I'm not sure how relevant this one is.
2024-02-22 19:16:08 -05:00
gdkchan
84871019c1 Implement remaining shader double-precision instructions (#2845)
* Implement remaining shader double-precision instructions

* Shader cache version bump
2024-02-22 19:16:08 -05:00
Mary
dcb72d0a4c misc: Fix alsoft.ini being present on Linux releases (#2902) 2024-02-22 19:16:08 -05:00
Piyachet Kanda
abeb840cf7 Implement UHADD8 instruction (#2908)
* Implement UHADD8 instruction along with a test unit

* Update PTC revision number
2024-02-22 19:16:08 -05:00
gdkchan
5e9fdaf310 Fix FLO.SH shader instruction with a input of 0 (#2876)
* Fix FLO.SH shader instruction with a input of 0

* Shader cache version bump
2024-02-22 19:16:07 -05:00
Mary
81c536b53f kernel: Improve GetInfo readability and update to 13.0.0 (#2900)
* kernel: Define InfoTYpe and make it less obscure when reading GetInfo

Also map ThreadTickCount to 25 instead of 0xF0000002 like 13.x kernel.

* kernel: Implement GetInfo IsApplication

* kernel: Implement GetInfo FreeThreadCount
2024-02-22 19:16:07 -05:00
Mary
ab322daffc misc: Migrate usage of RuntimeInformation to OperatingSystem (#2901)
Very basic migration across the codebase.
2024-02-22 19:16:07 -05:00
Mary
114bb849ad Fix Amiibo hanging since .NET 6 changes (#2890)
The .NET 6 changes ended up causing a difference in the way we deserialise and would end up deserializing wrongly.

This commit fixes it by resoring previous behaviour while still fixing the illink warning that caused that change in the first place
2024-02-22 19:16:07 -05:00
Logan Stromberg
9b788f5de8 Don't blow up everything if a DLC file is moved or renamed. (#2867)
* Don't blow up everything if a DLC file is missing

* change comment

* More correctly setting the "enabled" check box on dlc dialog for the add-on NSP based on the enabled state of all NCAs in the package.

* Update Ryujinx.HLE/HOS/ApplicationLoader.cs

Co-authored-by: Ac_K <Acoustik666@gmail.com>

Co-authored-by: Logan Stromberg <lostromb@microsoft.com>
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:16:07 -05:00
Mary
7d74c9edec infra: Migrate to .NET 6 (#2829)
* infra: Migrate to .NET 6

* Rollback version naming change

* Workaround .NET 6 ZipArchive API issues

* ci: Switch to VS 2022 for AppVeyor

CI is now ready for .NET 6

* Suppress WebClient warning in DoUpdateWithMultipleThreads

* Attempt to workaround System.Drawing.Common changes on 6.0.0

* Change keyboard rendering from System.Drawing to ImageSharp

* Make the software keyboard renderer multithreaded

* Bump ImageSharp version to 1.0.4 to fix a bug in Image.Load

* Add fallback fonts to the keyboard renderer

* Fix warnings

* Address caian's comment

* Clean up linux workaround as it's uneeded now

* Update readme

Co-authored-by: Caian Benedicto <caianbene@gmail.com>
2024-02-22 19:16:07 -05:00
Mary
482c4fc6ac kernel: Fix sleep timing accuracy (#2828)
* kernel: Fix sleep timing accuracy

This commit corrects some mistake while comparing reversing of kernel
13.x with our own.

WaitAndCheckScheduledObjects timing accuracy was also improved.

* Make KTimeManager.WaitAndCheckScheduledObjects spin wait for sub milliseconds

Fix performance regression on Pokemon Let's Go games and possibly
others.

* Address rip's comment

* kernel: Fix issues with timeout of -1 (0xFFFFFFFF)

Fixes possible hang on Pokemon DP and possibly others
2024-02-22 19:16:07 -05:00
Mary
3043f53925 kernel: Add support for CFI (#2839)
Add basic support for the CFI value being passed in X18 since 11.0.0 by the official kernel.
We do not implement any random generator atm in the kernel and as such the KSystemControl.GenerateRandom function is stubbed
2024-02-22 19:16:07 -05:00
Ac_K
2eb615c5b5 account/ns: Implement 13.0.0+ service calls (#2820)
This PR implements/stubs some missing calls introduced in recent firmware (13.0.0).

- `acc:u0 InitializeApplicationInfoV2` needed by ACNH.
- `aoc:u NotifyMountAddOnContent/NotifyUnmountAddOnContent/CheckAddOnContentMountStatus` checked by RE. Needed by ACNH.
- `IPurchaseEventManager PopPurchasedProductInfo` needed by Dying Light.

Now ACNH 2.0 update is fully playable, and Dying Light can boot further:
2024-02-22 19:16:06 -05:00