summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2025-11-20VideoCommon: avoid assuming global state exists for 'EndUtilityDrawing', use ↵iwubcode
last stored viewport/scissor rect instead
2025-11-19Merge pull request #14121 from jordan-woyak/warn-silenceJordan Woyak
Common and VideoCommon: Silence a few warnings.
2025-11-19SDIO: Remove file "good" checks so errors are properly produced.Jordan Woyak
2025-11-19SDIO: the CID/CSD are sent a bit differentlyNaim2000
2025-11-19SDIO: report actual error if writes are disabledNaim2000
2025-11-19SDIO: report write lock statusNaim2000
2025-11-19Merge pull request #13539 from tygyh/DiscIO-Remove-redundant-castsJordan Woyak
DiscIO: Remove redundant casts
2025-11-19Merge pull request #13619 from y21/usbv5_getversion_sizeJordan Woyak
Check buffer out/size in HID_USBv5/USB_VEN GetVersion Ioctl
2025-11-19Merge pull request #14127 from jordan-woyak/movie-cpu-thread-guardJordan Woyak
Movie: Replace a blocking RunOnCPUThread call with a CPUThreadGuard.
2025-11-19Core: Allow CPUManager::SetStepping to be called from the CPU thread so a ↵Jordan Woyak
call doesn't need to be routed through the host thread on boot.
2025-11-19Core: Remove unused HostMessageID enum members.Jordan Woyak
2025-11-18RetroAchievements - Android login callbackLillyJadeKatrin
Modify the RetroAchievements login code in Android to pass in a callback, pop a message if login fails, close the login box if it succeeds.
2025-11-18Common: Treat DirectIOFile as unable to create SAF filesJosJuice
In 405baed805, we made the assumption that whether OpenAndroidContent is able to create a new file depends on the open mode, the document provider, and the positions of the celestial bodies. However, I'm fairly sure that it can't create files at all as currently implemented. First, ContentResolver.openFileDescriptor is documented as throwing FileNotFoundException if the file doesn't exist. Now, the SAF documentation is notoriously unreliable on matters like these, and document providers can do whatever they want anyway, so we can't actually trust this to mean that FileNotFoundException will always be thrown if the file doesn't exist. But second, the Dolphin function ContentHandler.unmangle is also unable to handle files that don't already exist (unless the passed-in URI isn't mangled to begin with, but to the best of my knowledge, there's no way to get a non-mangled URI for a file that doesn't exist (unless you make assumptions about how the document provider's URI scheme works, which we don't do in Dolphin)). Summed up, it looks a lot like OpenAndroidContent can't create files, or at the very least can't do so reliably. Therefore I'm making DirectIOFile throw an assertion and return false in situations where it's being asked to create a file under SAF. For reference, there's no code in Dolphin that actually tries to create a file under SAF. In all instances where we use SAF to write to files, the file is created by the system file picker before it returns the URI of the file to us. What does this change gain us? First, if someone in the future tries to use DirectIOFile to create a file under SAF, they'll be immediately informed that this isn't supported rather than discovering it doesn't work and chalking it up to SAF being bad for unpredictable reasons. Second, we get rid of a call to File::Exists, which is a notable performance improvement for game list scanning due to SAF and Dolphin's "unmangling" being bad for reasons that unfortunately are entirely predictable to those of us who have stared into the SAF void. I've tested that game list scanning and game conversion still works.
2025-11-18DolphinQt/QtUtils: Simplify RunOnObject and eliminate Common::Event race.Jordan Woyak
2025-11-18Common: Introduce a OneShotEvent class. Unlike Common::Event, OneShotEvent ↵Jordan Woyak
is safe in situations when being immediately destructed.
2025-11-18Common/Functional: Add InvokerOf template which can convert function ↵Jordan Woyak
pointers to functor types.
2025-11-18Common/ScopeGuard: Fix move constructor.Jordan Woyak
2025-11-18Merge pull request #13748 from ↵JosJuice
Dentomologist/autoupdatechecker_delete_old_updater_log_file AutoUpdateChecker: Delete old Updater.log file
2025-11-17Bluetooth/RealtekFirmwareLoader: Add Mercusys MA530 to list.Jordan Woyak
2025-11-17JitArm64: Call GetImm before BindToRegister in subfcxJosJuice
When BindToRegister is called, the register cache marks the relevant guest register as no longer containing an immediate. However, subfcx was calling GetImm after BindToRegister. This led to a lot of panic alerts after 2995aa5be4 added an assert to GetImm to check that the passed-in register is an immediate. Both before and after 2995aa5be4, the actual value of the immediate wasn't overwritten by BindForRegister, only the fact that the register is an immediate. Because of this, the emitted code happened to work correctly.
2025-11-17Movie: Replace a blocking RunOnCPUThread call with a CPUThreadGuard.Jordan Woyak
2025-11-16AchievementManager - Add Android to user agentLillyJadeKatrin
If the build is an Android build, identify it as such in the AchievementManager user agent so that android builds can be tracked separately for debug purposes.
2025-11-16Merge pull request #13689 from JosJuice/lock-core-any-threadJosJuice
Core: Let any thread call previously host-thread-only functions
2025-11-16Merge pull request #12134 from JosJuice/jit-constpropJosJuice
Jit: Extract immediate handling to separate ConstantPropagation class
2025-11-16Merge pull request #13922 from TryTwo/imgui_add_default_fontJosJuice
OSD/Imgui: Add a better default font
2025-11-16Memmap: Fix populating m_logical_page_mappingsJosJuice
This fixes a regression in ac84ea17a6. That commit was intended to reduce the number of MapInMemoryRegion calls while otherwise keeping behavior the same, but it accidentally messed up our logic for writing to m_logical_page_mappings. This commit restores the old m_logical_page_mappings behavior, fixing a crash that would occur when running JitArm64 without fastmem.
2025-11-16JitArm64: Replace dirty flag and partially replace RegType enumJosJuice
Like Jit64, JitArm64 now keeps track of the location of a guest register using three booleans: Whether it is in ppcState, whether it is in a host register, and whether it is a known immediate. The RegType enum remains only for the purpose of keeping track of what format FPRs are stored in in host registers.
2025-11-16JitArm64: Don't store immediate values in register cacheJosJuice
Like the previous commit did for Jit64, JitArm64 can now handle the combination of a value simultaneously being in a host register and being a known immediate. Unlike with Jit64, I've put the codegen-affecting changes in this commit and the move away from the RegType enum in a follow-up commit. This is in part because the design of JitArm64 made it easy to implement the codegen-affecting changes without combining it with a big bang refactorization, and in part because we need to keep RegType around for keeping track of different float formats in Arm64FPRCache, complicating the refactorization a bit.
2025-11-16Jit64: Don't store immediate values in register cacheJosJuice
They're now stored in ConstantPropagation instead. I've also removed the LocationType enum. The location of each guest register is now tracked using three booleans: Whether it is in ppcState, whether it is in a host register, and whether it is a known immediate. The first two of these booleans are stored in the register cache, and the last one is stored in ConstantPropagation. This new model allows us to handle the combination of a value simultaneously being in a host register and being a known immediate. It also keeps track of which registers are dirty, which was previously kept track of in X64CachedReg. The old model maps to the new model as follows: default host_reg immediate Default true false false Discarded false false false Bound (!dirty) true false Immediate false false true SpeculativeImmediate true false true [previously unrepresentable] (!dirty) true true
2025-11-16Jit: Update constant propagation during instructionJosJuice
This commit makes the JIT set/clear the individual registers of ConstantPropagation immediately instead of at the end of the instruction. This is needed to prevent Jit64::ComputeRC, which reads from a register written to earlier during the same instruction, from reading back stale register values from ConstantPropagation in the next commit.
2025-11-16JitArm64: Make FlushRegisters unlock condition more robustJosJuice
To find out whether a host register needs to be unlocked, FlushRegisters checks if the guest register is known to be a zero immediate. This works right now, but it will stop working correctly once we gain the ability to have a guest register be a known immediate and be in a host register at the same time, because a register that's known to be a zero immediate may have had a host register allocated prior to the call to FlushRegisters. Instead, we should check whether the register is RegType::Register after we're done calling BindForRead.
2025-11-16JitArm64: Pass index to more Arm64GPRCache functionsJosJuice
This refactorization is needed for upcoming commits.
2025-11-16Jit: Move rlwimix to ConstantPropagationJosJuice
2025-11-16Jit: Move srawx to ConstantPropagationJosJuice
2025-11-16Jit: Move srwx to ConstantPropagationJosJuice
2025-11-16Jit: Move slwx to ConstantPropagationJosJuice
2025-11-16Jit: Move divwx to ConstantPropagationJosJuice
2025-11-16Jit: Move divwux to ConstantPropagationJosJuice
2025-11-16Jit: Move subfic to ConstantPropagationJosJuice
2025-11-16Jit: Move subfx to ConstantPropagationJosJuice
2025-11-16Jit: Move multiplication by 0 optimization to ConstantPropagationJosJuice
2025-11-16Jit: Move mullwx, mulhwx, mulhwux to ConstantPropagationJosJuice
2025-11-16Jit: Move mulli to ConstantPropagationJosJuice
2025-11-16Jit: Move addicx to ConstantPropagationJosJuice
Note: Jit64 didn't support immediate handling for addic before.
2025-11-16Jit: Move srawix to ConstantPropagationJosJuice
2025-11-16Jit: Move rlwinmx and rlwnmx to ConstantPropagationJosJuice
2025-11-16Jit: Move negx to ConstantPropagationJosJuice
2025-11-16Jit: Move cntlzwx to ConstantPropagationJosJuice
2025-11-16Jit: Move extsXx to ConstantPropagationJosJuice
2025-11-16Jit: Move addx to ConstantPropagationJosJuice