summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2026-09-05Merge pull request #14838 from OatmealDome/mac-memory-increase-failJosJuice
MemArenaDarwin: Pass the MAP_MEM_VM_SHARE flag to mach_make_memory_entry_64
2026-09-04HW/EXI: Don’t dereference one item past end of arrayLink Mauve
Dolphin would previously crash while accessing &buffer[got], as if we were trying to access that element instead of just obtaining a pointer to it. The proper solution is to obtain a pointer to the first element, and only add the offset we want to get the range. Here is the printed message: /usr/include/c++/16/array:210: constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) [with _Tp = char; long unsigned int _Nm = 128; reference = char&; size_type = long unsigned int]: Assertion '__n < this->size()' failed. The stack trace originates from: Source/Core/Core/HW/EXI/EXI_DeviceGecko.cpp:139
2026-09-03Merge pull request #14830 from JoshuaVandaele/sdl-miscsJosJuice
SDLGamepad: Add Misc 2 through 6
2026-09-03Merge pull request #14686 from JoshuaVandaele/sdl-touchpadsJosJuice
SDLGamepad: Support multiple touchpads
2026-09-03Core: Improve error message on empty dffLink Mauve
This also lets us remove the comment, which is now unnecessary.
2026-09-03VideoCommon: Use correct size for PE tokenLink Mauve
This token is a u16, not a u24, so let’s not display unnecessary 00 padding.
2026-09-01MemArenaDarwin: Pass the MAP_MEM_VM_SHARE flag to mach_make_memory_entry_64OatmealDome
Large anonymous mappings are split into 128 MB chunks. Without MAP_MEM_VM_SHARE, mach_make_memory_entry_64 will only return an entry spanning the first chunk. Attempting to map through that entry will fail if it extends beyond the 128 MB boundary, which can happen when the sizes of MEM1/MEM2 are overridden.
2026-08-31VideoCommon: separate out reinterpret and palette texture creation from ↵iwubcode
rendering
2026-08-31VideoCommon: Prefer Vulkan over OpenGL on LinuxJoshua Vandaële
2026-08-30Arm64Emitter: Make FixupBranch smallerJosJuice
We were previously delaying all aspects of branch instruction encoding to when SetJumpTarget runs. Now we only delay encoding the branch distance. This lets us get away with storing less data in the FixupBranch struct, making it small enough to be passed in two registers instead of in memory.
2026-08-30DolphinQt: Properly define QtPathsJoshua Vandaële
This fixes cross-compilation on Windows, where windeplotqt would previously always grab the host's DLLs instead of the target's.
2026-08-29Merge pull request #14818 from JoshuaVandaele/gridview-titleDentomologist
GameList: Enable word wrap in grid view
2026-08-29Merge pull request #14824 from JosJuice/save-controller-to-dtmJosJuice
Core: Fix controllers resetting when starting input recording
2026-08-28SDLGamepad: Add Misc 2 through 6Joshua Vandaële
SDL 3 has more misc buttons for "additional controller buttons" (e.g. left/right trigger clicks on a GameCube controller, or for the second touchpad click on the Steam Controller) which use these additional named Misc buttons. Taken from [SDL_GamepadButton](https://wiki.libsdl.org/SDL3/SDL_GamepadButton)
2026-08-27Merge pull request #14718 from JosJuice/android-vibration-lengthJMC47
Android: Make vibration length variable
2026-08-24Core: Fix controllers resetting when starting input recordingJosJuice
200e26c added controller handling to MovieConfigLayerLoader's LoadFromDTM but not SaveToDTM. This caused a regression. When starting a new input recording, MovieManager::BeginRecordingInput calls SaveToDTM, which doesn't set the controller values in the DTM header to anything. Then it loads the newly created movie config layer, causing LoadFromDTM to be called, which in turn causes zeroed out controller values to be loaded from the DTM header. This leaves the player with all controllers set to None, making it impossible to control the game. To fix this, let's move the saving of controllers from MovieManager::SaveRecording to ConfigLoaders::SaveToDTM.
2026-08-24DolReader: correctly save section index of ancastDacoTaco
2026-08-23Merge pull request #14736 from tom-pratt/wii-controller-netplayJMC47
Auto assign wii controllers in netplay
2026-08-22Common: Add DivideRoundingUp functionJosJuice
Many callers of AlignUp are dividing immediately after aligning. Let's add a helper function for this so callers don't have to specify the alignment size twice.
2026-08-22Common: Reduce LazyMemoryRegion's Windows block sizeJosJuice
8 MiB is excessively large for the new use cases, and probably a bit overkill for the old use cases too. Let's reduce it to 1 MiB.
2026-08-22Jit: Use LazyMemoryRegion-backed bit setsJosJuice
JitCache has been using a class called ValidBlockBitSet. This commit replaces it with a new class called LazyMemoryRegionBitSet, which works similarly but is backed by a LazyMemoryRegion, letting us skip allocating memory for parts of the bit set that correspond to emulated memory regions where the game isn't storing any code. I have also added optimized functions for setting or clearing long runs of bits. Additionally, this commit replaces JitBase's three std::unordered_sets that are keeping track of instructions with LazyMemoryRegionBitSets. Here the benefit is more speed than memory usage. This improves NBA Live 2005's menu performance by 1% or so in SuperSamus's testing.
2026-08-21Common: Add Android to GetNetplayDolphinVerJosJuice
This makes Android players show up as "Android" instead of "Lin". (This is only visible in DolphinQt, not in the Android GUI.) I'm also unabbreviating all the existing operating system names: * Win -> Windows * Mac -> macOS * Lin -> Linux
2026-08-20Merge pull request #14800 from dreamsyntax/winupdater-vcredistOatmealDome
Require VS2026; Update Redist WinUpdater Pulls
2026-08-19Merge pull request #14821 from SuperSamus/mmu-try-read-non-integral-fixupAdmiral H. Curtiss
MMU: Fix non-integral HostTryRead not passing space
2026-08-19MMU.h: Remove useless consts in declarationsMartino Fontana
Since the issue solved by the previous commit was spotted with clang-tidy, let's also fix its other complaints. https://clang.llvm.org/extra/clang-tidy/checks/readability/avoid-const-params-in-decls.html
2026-08-19MMU: Fix non-integral HostTryRead not passing spaceMartino Fontana
Randomly spotted. Didn't test, but it was obviously wrong. Fixes regression from 8a97ce9124c94f868b078d67208f81795f259323.
2026-08-19Debugger: Fix symbol search speedMartino Fontana
Having Qt query a setting for every symbol isn't efficient. Fixes regression introduced by #13216.
2026-08-18DolReader: Don't error on dol section alignment on WiiDacoTaco
2026-08-16GameList: Enable word wrap in grid viewJoshua Vandaële
2026-08-16Replace manual calculations with std::lerp and std::midpointDr. Dystopia
2026-08-15Android: Use TitleDatabase for game listJosJuice
By using the title database we ship with Dolphin, we get more uniform game titles than if we grab what's in each game's opening.bnr file. It also becomes possible for users to supply a custom titles.txt file. This has been implemented in DolphinQt since a long time ago.
2026-08-13DSP: Fix `Off-by-one` clamping errorDr. Dystopia
2026-08-12Fix crashes when using `std::locale{""}` with an invalid LC_ALLJoshua Vandaële
2026-08-10Merge pull request #14808 from phire/ZeldaHLE_overflowOatmealDome
Fix stack overflow in ZeldaHLE
2026-08-11Fix stack overflow in ZeldaHLEScott Mansell
Independently spotted by both @Dentomologist and me while reviewing PR #14805 The previous limit was correct for valid VPBs, but an invalid VPB controlled by a malicious game could contain a non-fractional value in current_pos_frac, which would allow writing an extra 15 samples (30 bytes) into the stack. With AFC encoding, this is rounded up to 16 samples, but with much less control over which bytes are written. Maybe we should be doing some validation, or bounds checking, but I'm pretty sure this issue was copied from the original ucode, and we kinda want to stay compatible. The simpler fix is to just increase the size of raw_input_samples. I've checked other code paths, and 0x514 samples seems to be the limit.
2026-08-10SDLGamepad: Support multiple touchpadsJoshua Vandaële
2026-08-09Common: Fix LazyMemoryRegion::EnsureMemoryPagesWritableJosJuice
If (offset + size) % BLOCK_SIZE was smaller than offset % BLOCK_SIZE, the loop terminated one iteration too early, potentially leaving a block read-only. None of the existing users of LazyMemoryRegion could trigger this bug, because they never made EnsureMemoryPagesWritable calls that straddled across two blocks, but the next commit will add a new use that does.
2026-08-09DSPHLE/Zelda: prevent out-of-bounds stack readTillmann Karras
Reported by @RickdeJager.
2026-08-09Merge pull request #14803 from Andy1210/fix/bbox-memorybarrier-mainlineScott Mansell
VideoBackends/OGL: Don't call glMemoryBarrier without ARB_shader_image_load_store
2026-08-08Merge pull request #14767 from JosJuice/state-nand-open-fileJosJuice
IOS/FS: Fix loading savestate when files are open
2026-08-08Merge pull request #14802 from phire/fallthrough_warningsDentomologist
Enable Fallthrough warnings
2026-08-08Fix fallthough in CodeView/MemoryView widgetsScott Mansell
This slightly changes the behaviour, but I think this is more correct.
2026-08-08Fix missing break in BluetoothRealDeviceScott Mansell
Minor behaviour change, prevents an erroreous error log
2026-08-08Add missing breaks (no behaviour change)Scott Mansell
2026-08-07VideoBackends/OGL: Don't call glMemoryBarrier without ↵Andy1210
ARB_shader_image_load_store glMemoryBarrier comes from ARB_shader_image_load_store, so on a desktop context below GL 4.2 the pointer is null. bSupportsBBox is set from bSupportsFragmentStoresAndAtomics, which such a driver can still have, so saving a state reads the bounding box and calls a null pointer. UsePersistentStagingBuffers() in OGLTexture.cpp already guards the same call with bSupportsImageLoadStore.
2026-08-07Add fallthroughs to OpenGL InitExtentionListScott Mansell
2026-08-07Add fallthroughs to GetMurmurHash3Scott Mansell
2026-08-07Optimize vertex_shader_uid_data down to 28 bytesScott Mansell
This started as a fixing a misalignment issue, but I got carried away. Was originally 41 bytes (overflowing it's expected 40 bytes by 1 bit). Now it's 27 bytes plus 8 bits of padding (ready for future expansion). The savings come from: - Removing UV usage from components, it can be reconstructed from texcoord_elem_count (saved 8 bits) - Removed the 8 unused bits from texMtxInfo_n_projection (saved 8 bits) - Removing unused bit from from start of components (saved 1 bit) - Removed extra bit from inputform, texgentype and sourcerow - packed texMtxInfo_n_projection and texcoord_elem_count back into the per texgen info space freed up above. (saved 24 bits) - Overlayed postMtx index and Emboss mode shifts into a union based on texgentype (saved 56 bits) - Move to a single-bit union tag, freeing up an extra bit for regular texgens. - Move PotMtx normalize into the freed up space (saved 8 bits) Total savings: 105 bits of data EDIT: Even worse, MSVC wasn't respecting pack(1) for bitfields at all, so on windows this struct was actually quite a bit larger. Something like 80 bytes, if not more. Fixed this by dropping the size of any enums used in these bit structs to u8. Our Common::BitField allows for the underlying type to be explicitly specified to something larger. msvc's bitfield packing appears to be completely braindead, can't mix sizes at all.
2026-08-05Require VS 2026, update WinUpdater redistdreamsyntax
Updater now pulls VC14 Require MSVC 19.51.36252
2026-08-05Common/BitCastPtr: Prevent destination type to be a pointerSepalani