bunnei
f6cbb14dce
hle: kernel: KThread: Rename thread_type_for_debugging -> thread_type.
- This will be used to ensure that we do not schedule dummy threads.
4 years ago
Jan Beich
d24a4b79d4
video_core: constify AVCodec for ffmpeg >= 5.0
src/video_core/command_classes/codecs/codec.cpp:177:16: error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers
av_codec = avcodec_find_decoder(codec);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
4 years ago
german77
8fa0416fee
service/hid: Initialize applet_resource on SetNpadAnalogStickUseCenterClamp
4 years ago
Georg Lehmann
d15814d39f
vulkan_device: Fix sType for VkPhysicalDeviceShaderAtomicInt64Features
4 years ago
Narr the Reg
36144a5690
input_common: Report battery for UDP controllers
4 years ago
v1993
a943600019
shader_recompiler: fix potential OOB access
Found by static analysis with PVS-Studio. Original check wasn't actually checking for OOB and would segfault in case of it.
4 years ago
Valeri
84786dde00
hle: remove no-op code
Found by static analysis with PVS-Studio. Nobody seems to really know what was it doing there.
4 years ago
Valeri
3431e0acf5
input_common: nitpick about SetHatButton usage
4 years ago
Valeri
a99f84f4b2
input_common: fix copy-paste error
Found by static analysis with PVS-Studio.
4 years ago
Valeri
8eddafd9d0
hid: fix std::transform call
Found by static analysis with PVS-Studio.
4 years ago
Morph
78e233c460
uisettings: Add enumeration type for themes
Eliminates the usage of a magic number to indicate the default index of the themes array,
4 years ago
gidoly
789af19c60
config: Change default theme to Dark Colorful
4 years ago
Valeri
c624edceba
Correct assignment source for rotations
Found by static analysis with PVS-Studio
4 years ago
german77
9eab07f863
input_common: Reintroduce motion from mouse and use button names
4 years ago
ameerj
a5bff8e9b3
astc_decoder: Combine FastReplicate functions to work around new NV driver bug
The new Nvidia drivers have a bug where the FastReplicateTo6 function produces a lookup into the REPLICATE_TO_8 table rather than the REPLICATE_TO_6 table.
This seems to be an optimization gone wrong. Combining the logic of the FastReplicate functions seems to address the bug.
4 years ago
german77
850896a52b
audio/stream: Adjust volume scale factor
4 years ago
german77
c8b3a12856
yuzu: Add volume up/down hotkeys
4 years ago
gidoly
92d676d788
Xbox controller default name nit pick
Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
4 years ago
german77
419f427a01
yuzu: Remove speed limit hotkeys
4 years ago
bunnei
b54cbc985e
hle: kernel: k_memory_manager: Clear pages on allocation & free.
- Heap pages should be zero'd.
- Also explicitly passed along heap allocation option.
4 years ago
gidoly
7978ea4e8c
Change default name for ps controllers
Minor nitpick
Code is from narr
4 years ago
bunnei
f499c8177e
core: hle: kernel: KThread: Integrate with KWorkerTask and implement DoWorkerTaskImpl.
- This is used to terminate a thread asynchronously after it has been exited.
- This fixes a crash that can occur in Pokemon Sword/Shield because a thread is incorrectly closed on svcExitThread, then, the thread is destroyed on svcCloseHandle while it is still scheduled.
- Instead, we now wait for the thread to no longer be scheduled on all cores before destroying it from KWorkerTaskManager, which is accurate to HOS behavior.
4 years ago
bunnei
d8b3f665db
core: hle: kernel: KProcess: Integrate with KWorkerTask and add unimplemented DoWorkerTaskImpl.
4 years ago
bunnei
03884b7ea6
core: hle: kernel: KThread: Replace Suspend with UpdateState & various updates.
- This makes our implementations of these more closely match HOS.
4 years ago
bunnei
c905044e1b
core: hle: kernel: Instantiate a kernel instance of KWorkerTaskManager.
4 years ago
bunnei
bf32fcc817
core: hle: kernel: Add KWorkerTask and KWorkerTaskManager.
- These primitives are used to dispatch asynchronous kernel tasks from KThread and KProcess.
4 years ago
bunnei
f6de57c1a5
common: fiber: YieldTo: Avoid hard crash on nullptr previous_fiber.
- When the emulator crashes to desktop below, we don't even get this captured in a log, making such issues harder to debug.
4 years ago
bunnei
cc112f971e
hle: kernel: Fix service_threads access to be thread safe V2.
- PR #7699 attempted to fix CreateServiceThread and ReleaseServiceThread to be thread safe, but inadvertently introduced a possible dead-lock.
- With this PR, we use a worker thread to manage the service thread list, allowing it only to be accessed by a single thread, and guaranteeing threads will not destroy themselves.
- Fixes a rare crash in Pokemon Sword/Shield, I've now run this game for ~12 hours non-stop and am quite confident this is a good solution for this issue.
4 years ago
Narr the Reg
5ce5432830
core/hid: Increment shake force
With the current settings 2p mode in pokemon let's go wasn't showing up. By making the shake more violent we can make it appear without any effort using the keyboard
4 years ago
bunnei
2147240e47
hle: kernel: Fix service_threads access to be thread safe.
- CreateServiceThread and ReleaseServiceThread can be accessed by different threads, uses a lock to make this thread safe.
- Fixes a rare crash in Pokemon Sword/Shield that can occur when a new service thread is being created while an old one is being destroyed.
4 years ago
Narr the Reg
8185509683
service/hid: Decrease motion update rate
Motion stops working in Mario Tennis in swing mode if the update rate is too fast even when HW it updates at the same speed. 10ms it's the minimum period that the game needs to start working again.
4 years ago
Narr the Reg
d348070226
core/hid: Reduce gyro threshold even more
4 years ago
bunnei
49a0e4330e
hle: kernel: k_page_table: Update SetProcessMemoryPermission.
4 years ago
bunnei
6ac44f3bdc
hle: service: ldr: UnmapCodeMemory BSS only when set.
4 years ago
bunnei
6123b6ea45
hle: kernel: k_page_table: ReadAndWrite -> UserReadWrite.
4 years ago
bunnei
081669c334
hle: kernel: k_page_table: Rename *ProcessCodeMemory -> *CodeMemory.
4 years ago
Alexandre Bouvier
c8b358dba2
cmake: make tests optional
4 years ago
Morph
d92b5fc435
common: bit_util: Add IsPow2 helper function
Makes use of std::has_single_bit() to check whether the value is a power of 2.
4 years ago
Morph
36da4d1121
yuzu: main: Increase the open file limit on Windows to 8192
This is a temporary solution for now to accommodate for mods containing more than 4096 files.
4 years ago
liushuyu
09f4f3f23b
logging/log.h: move enum class formatter to a separate file ...
... to common/logging/formatter.h
4 years ago
liushuyu
099dd0c0d2
logging/log: use `underlying_type` instead of hardcoding types
4 years ago
bunnei
af4696657c
core: hle: kernel: svc: Updates to SetMemoryAttribute and SetMemoryPermission.
4 years ago
german77
ea089c012e
input_common: Handle errors on TAS scripts
4 years ago
bunnei
b9a313057e
core: hle: kernel: k_page_table: Update CheckMemoryState.
4 years ago
liushuyu
42f653ab6f
logging: adapt to changes in fmt 8.1
4 years ago
german77
873d26b335
yuzu: Use pad parameter to choose the correct controller
4 years ago
german77
d05675242a
input_common: Fix udp motion not automapping to both sides
4 years ago
german77
72c8a94a6c
yuzu: Add controller hotkeys
4 years ago
german77
b94e947793
core/hid: Add home and screenshot button support
4 years ago
german77
50a7152941
core/hid: Set minimum gyro threshold
4 years ago