Commit graph

23889 commits

Author SHA1 Message Date
Zephyron
17e68e6d70 video_core: Enforce safe memory reads for compute dispatch
- Modify DmaPusher to use safe memory reads when handling compute
  operations at High GPU accuracy
- Prevent potential memory corruption issues that could lead to
  invalid dispatch parameters
- Previously, unsafe reads could result in corrupted launch_description
  data in KeplerCompute::ProcessLaunch, causing invalid vkCmdDispatch
  calls
- By enforcing safe reads specifically for compute operations, we
  maintain performance for other GPU tasks while ensuring compute
  dispatch stability

This change requires >= High GPU accuracy level to take effect.
2025-04-04 03:40:49 +02:00
EmulationEnjoyer
5a3be92a5f Implement HID function stub "SetGestureOutputRanges" (#105)
Add function stub for "SetGestureOutputRanges" in HID service

Fixes userspace panic when booting Donkey Kong Country Returns HD:

> Debug <Critical> core\hle\service\service.cpp:operator ():78: Assertion Failed!
Unknown / unimplemented function '92(<unknown>)': port='hid' cmd_buf={[0]=0x6, [1]=0x8000000C, [2]=0x1, [3]=0x0, [4]=0x4F434653, [5]=0x0, [6]=0x0, [7]=0x0, [8]=0x49434653}
> Service.AM <Info> core\hle\service\am\service\application_functions.cpp:SetTerminateResult:187: (STUBBED) called, result=0x1a80a (2010-0212)
> Debug.Emulated <Critical> core\hle\kernel\svc\svc_exception.cpp:Break:52: Userspace PANIC! info1=0x0000001086D02C4C, info2=0x0000000000000004
> Debug.Emulated <Critical> core\hle\kernel\svc\svc_exception.cpp:operator ():33: debug_buffer_err_code=1A80A
> Debug.Emulated <Critical> core\hle\kernel\svc\svc_exception.cpp:Break:102: Emulated program broke execution! reason=0x0000000000000000, info1=0x0000001086D02C4C, info2=0x0000000000000004

ref: 132077e18f

![](https://i.imgur.com/hbBnlYs.png)

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/105
Co-authored-by: EmulationEnjoyer <emulationenjoyer@noreply.localhost>
Co-committed-by: EmulationEnjoyer <emulationenjoyer@noreply.localhost>
2025-04-04 03:40:49 +02:00
EmulationEnjoyer
8a5a52f546 Update src/audio_core/common/feature_support.h
Updated AudioCore Revision from 11 -> 13
2025-04-04 03:40:49 +02:00
Zephyron
528c09ae72 kernel: Implement SystemResourceSize info type for VAMM initialization
Adds support for InfoType::SystemResourceSize (0x1C) which is required for
proper initialization of the Virtual Address Memory Manager (VAMM). This
implementation:

1. Adds SystemResourceSize to the InfoType enum in svc_types.h
2. Implements the GetInfo handler for SystemResourceSize in svc_info.cpp
3. Returns 512MB (0x20000000 bytes) as the system resource size
4. Adds debug logging for the SVC call

The 512MB value is chosen based on typical system resource allocations
needed for VAMM initialization on the Nintendo Switch.

This fixes crashes in games that rely on VAMM functionality, particularly
during nn::os::detail::VammManager::InitializeIfEnabled().
2025-04-04 03:40:49 +02:00
eee726ca81 Add the rest of the necessary code for ssl:s
Credit: Antique - (Sudachi) Dev [https://sudachi.emuplace.app/]

Signed-off-by: MrPurple666 <antoniosacramento666@gmail.com>
2025-04-04 03:40:49 +02:00
JPikachu
0c6a8f4808 Update ssl stubs
Updated the ssl stubs to implement ssl:s for Firmware 19
This should make Xenoblade X: Definitive Edition bootable
Credit: Antique - (Sudachi) Dev [https://sudachi.emuplace.app/]
2025-04-04 03:40:48 +02:00
JPikachu
4f54b8076c Rewrote mm:u to follow switchbrew.org documentation and update them
Credit: Antique - [Sudachi Dev] (https://sudachi.emuplace.app/)
2025-04-04 03:40:48 +02:00
darktux
05646e6000 Disabled MCO_USE_VMEM_ALLOCATOR because standard stack size seems to suffice 2025-04-04 03:40:48 +02:00
darktux
9e3c2d56d6 Add SR_WScaleFactorXY/SR_WScaleFactorZ stubs for Prince of Persia (#5)
Pulled in and cleaned up from Sudachi

Reviewed-on: http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/darktux/torzu/pulls/5
Co-authored-by: darktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
Co-committed-by: darktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
2025-04-04 03:40:48 +02:00
darktux
e2486f1217 Remove accidental use of standard format instead of libfmt format 2025-04-04 03:40:48 +02:00
darktux
8b62a7fb21 Added v18.0.0 stubs and updated tzdb_to_nx 2025-04-04 03:40:48 +02:00
darktux
a015fbbfe2 Vulkan validation error fix.
Different image usage flags between image creation and image view
creation.
2025-04-04 03:40:48 +02:00
darktux
047df5dfff Save memory by using dyamic stack size in Fiber 2025-04-04 03:40:48 +02:00
darktux
cb477dacea Implemented a more correct version of ISfServiceMonitor::GetGroupInfo 2025-04-04 03:40:48 +02:00
darktux
3d422626d1 Fixed minicoro.h formatting 2025-04-04 03:40:47 +02:00
darktux
803939a540 Radeon gpu profiler detection support 2025-04-04 03:40:47 +02:00
darktux
50f7d4982b clang-formated new fiber.cpp and minicoro.h 2025-04-04 03:40:47 +02:00
darktux
865757be47 Implemented rewindless Fiber without Boost (using minicoro) 2025-04-04 03:40:47 +02:00
darktux
9a39b63f12 Solves warning about GuestMemory having internal linkage.
It is very hard to explain why this public interface class was defined
in an anonymous namespace inside a header file.
2025-04-04 03:40:47 +02:00
darktux
7f3c674385 Fixed formatting in new stubs ported from Suyu 2025-04-04 03:40:47 +02:00
darktux
e8d935c67a Ported some stubs from Suyu (2ba2db7795) 2025-04-04 03:40:47 +02:00
darktux
5d1ee830ab Removed telemetry and anonymized SCM (git) strings 2025-04-04 03:40:47 +02:00
darktux
996ac3571c Actually return 0 in IFriendService::GetReceivedFriendRequestCount 2025-04-04 03:40:47 +02:00
darktux
d7692fa231 Fixed minor issues from previous PR related to buffers and a typo in npns 2025-04-04 03:40:47 +02:00
darktux
e723b3a5b6 Implemented IFriendService::GetUserPresenceView stub to get QLaunch friends list running 2025-04-04 03:40:46 +02:00
darktux
5bec9d3656 Always report command ID in log and implement LoadUserSetting stub 2025-04-04 03:40:46 +02:00
darktux
5ae2193207 Disable "Open Home Menu" action as appropriate 2025-04-04 03:40:46 +02:00
darktux
ca0549bc0f Port changes from Early Access 2025-04-04 03:40:46 +02:00
darktux
a549bacaa9 Android: Add ability to run Qlaunch 2025-04-04 03:40:46 +02:00
darktux
7477e211fe Implement option to start QLaunch from Tools menu 2025-04-04 03:40:45 +02:00
Briar
da32964210
android: Add static color theme option
* android: Add static color theme option ported from Azahar 

* android: Remove leftover xml from early access fragment

* android: Properly theme material dialogs to theme color

* android: Fixup colors through the app

and make game image corners more round

* android: Set default theme to violet to match eden branding

* Update license headers

---------

Co-authored-by: Kleidis <167202775+kleidis@users.noreply.github.com>
2025-04-04 03:35:28 +02:00
Briar
53ac2069b5 android: Update AndroidX dependencies to latest versions 2025-04-04 03:23:32 +02:00
Briar
35843f8848 externals: Downgrade dynarmic to ae99622 and xbyak to 0d67fd15; modify ABI parameter handling in macro_jit_x64.cpp 2025-04-04 03:23:32 +02:00
Briar
92a4ac45a4 android: Switch to custom Oboe submodule 2025-04-04 03:23:32 +02:00
Briar
a351ea0212 Fix windows boost compilation errors 2025-04-04 03:23:32 +02:00
Briar
f7364718bf Update fastmem pointer handling to use std::optional 2025-04-04 03:23:32 +02:00
Briar
b9496511c8 qt: 6.7.3 Implementation
Co-authored-by: Kleidis <167202775+kleidis@users.noreply.github.com>
2025-04-04 03:23:31 +02:00
briar
78e806c530 android: Remove leftover EA strings 2025-04-04 03:23:31 +02:00
Briar
f2064e7572 android: Remove early access fragment and home setting item 2025-04-04 03:23:31 +02:00
Briar
0248098d90 android: Update icons to use eden's 2025-04-04 03:23:31 +02:00
Briar
9ffe7c34ea android: Change appID 2025-04-04 03:23:31 +02:00
Briar
6ed708d0fa android: Rename default device name to eden 2025-04-04 03:23:31 +02:00
Briar
18d6d93ccf android: Change app name to eden 2025-04-04 03:23:31 +02:00
Briar
050f86eced android: Updated some user-facing strings to refer to eden 2025-04-04 03:23:31 +02:00
Briar
46d3e8135a Switch default username to eden 2025-04-01 18:38:41 +02:00
Briar
b94e10a8a1 qt: Updated some user-facing strings to refer to eden 2025-04-01 18:37:54 +02:00
Briar
76f424de00 Rename log file to eden_log 2025-04-01 18:36:48 +02:00
Briar
e4d277f0c8 Changed executable names to eden 2025-04-01 18:35:37 +02:00
voidanix
533c5231c9 Fix GCC builds with Debug build type 2025-04-01 18:31:44 +02:00
briar
5d2b494199 android: Update various deps 2025-04-01 18:30:57 +02:00