summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2025-11-08CPUThreadConfigCallback: Use maximum value of size_t instead of -1 as ↵Simonx22
default value ConfigChangedCallbackID Co-Authored-By: OatmealDome <OatmealDome@users.noreply.github.com>
2025-11-08Merge pull request #14086 from Simonx22/android/use-native-analyticsOatmealDome
Android: Use the shared HTTP analytics backend
2025-11-08Merge pull request #14082 from Simonx22/analytics/reload-on-setting-changeOatmealDome
DolphinAnalytics: Reload backend when config changes
2025-11-08Android: Use the shared HTTP analytics backendSimonx22
We can now route Android analytics through Common::HttpAnalyticsBackend, drop the Volley sender, and keep the JNI layer limited to only transfer metadata since https://bugs.dolphin-emu.org/issues/11772 has been fixed.
2025-11-08Merge pull request #14020 from jordan-woyak/string-util-cleanupsJosJuice
StringUtil: Cleanups and add some character encoding conversion unit tests.
2025-11-08Config: Use maximum value of size_t instead of -1 as default value in ↵Simonx22
ConfigChangedCallbackID Co-authored-by: OatmealDome <julian@oatmealdome.me>
2025-11-08DolphinAnalytics: Reload backend when config changesSimonx22
Co-Authored-By: OatmealDome <julian@oatmealdome.me>
2025-11-08Merge pull request #13939 from ↵JosJuice
Dentomologist/logging_avoid_overwriting_debug_verbosity_in_release_builds Logging: Don't overwrite LDEBUG level in Release builds
2025-11-07Merge pull request #14074 from jordan-woyak/HookableEvent-no-stringsJordan Woyak
Common: Remove the string parameters from the HookableEvent interface.
2025-11-07Merge pull request #14079 from ↵Jordan Woyak
Dentomologist/use_asyncworkthread_pushblocking_instead_of_sync_event CubebStream: Use WorkQueueThread::PushBlocking instead of sync_event
2025-11-07CubebStream: Use WorkQueueThread::PushBlocking instead of sync_eventDentomologist
Push and wait on WorkQueueThread items using PushBlocking. Previously we created a Common::Event sync_event on the caller's stack, called Wait on it, then had the WorkQueueThread call Set on the sync_event once the thread was done. In addition to being simpler the new way avoids a use-after-free that could happen in convoluted and unlikely yet possible thread scheduling sequences. One such case can be triggered as follows: * Set your audio backend to Cubeb * In CubebStream::SetVolume set a breakpoint at the call to Wait and at the call to cubeb_stream_set_volume. * Start a game. * Continue until the Cubeb Worker thread hits the cubeb_stream_set_volume breakpoint and Emuthread hits the Wait breakpoint, freezing each thread when it hits its breakpoint. * Unfreeze Cubeb Worker. * In Event::Set set a breakpoint at the end of the scope containing the lock_guard such that the guard has been constructed but not destructed when the breakpoint is hit. * Continue until that breakpoint is hit by Cubeb Worker. If other threads hit it first keep going. * Freeze Cubeb Worker. * For convenience remove the breakpoint in Event::Set so other threads don't trigger it. * In CubebStream::SetRunning set a breakpoint at the call to Wait. * Unfreeze Emuthread and continue until the breakpoint is hit. * In Cubeb Worker go to Event::Set and examine the values of m_mutex's member variables. In Visual Studio Debug these are locking_thread_id == 0xcccccc01 and ownership_levels == 0xcccccccc. This is the result of Visual Studio overwriting the memory used on the stack by sync_event in CubebStream::SetVolume with cc bytes to represent uninitialized memory on the stack (since that function already returned), and then allocating enough memory on the stack when calling AudioCommon::SetSoundStreamRunning and then CubebStream::SetRunning that it overwrote one byte of the memory formerly occupied by locking_thread_id. * If you unfreeze Cubeb Worker at this point it will trigger the lock guard's destructor which will then try to unlock m_mutex. Since m_mutex is no longer in scope this is a use-after-free, and in VS debug triggers a debug assert due to locking_thread_id not matching the current thread id.
2025-11-07Merge pull request #13858 from ↵JosJuice
LillyJadeKatrin/retroachievements-message-adjustments Retroachievements message adjustments
2025-11-06Common: Remove the string parameters from the HookableEvent interface.Jordan Woyak
2025-11-06Merge pull request #14069 from jordan-woyak/ciface-hookable-eventJordan Woyak
InputCommon: Make ControllerInterface RegisterDevicesChangedCallback use Common::HookableEvent.
2025-11-06Improve Achievements Window messageLillyJadeKatrin
Special message on the Achievements window if the token is invalid/expired.
2025-11-06Merge pull request #14062 from Simonx22/macos-design-fixesOatmealDome
macOS: UI fixes for dark mode
2025-11-06Delete Invalid RetroAchievements TokensLillyJadeKatrin
2025-11-06Added message for bad RetroAchievements tokenLillyJadeKatrin
Displays a different message at game launch if RetroAchievements fails specifically due to an invalid or expired API token, instructing the player to log back in with the game closed.
2025-11-06Adjusted mastery messageLillyJadeKatrin
Wes from RetroAchievements requested a minor phrasing change to the mastery message.
2025-11-06DolphinQt: Make disc ConvertDialog have a better minimum size, use ↵Jordan Woyak
QFormLayout, and clean up the code a bit.
2025-11-06CMakeLists: Fix build on Linux with CMake versions less than 3.25.Jordan Woyak
2025-11-05VideoCommon: pass the EFB buffer scale into the FramebufferManager instead ↵iwubcode
of pulling it from config, in the future this will allow us to have multiple framebuffers
2025-11-05InputCommon: Make ControllerInterface RegisterDevicesChangedCallback use ↵Jordan Woyak
Common::HookableEvent.
2025-11-05WindowsDevice: Remove GetDeviceProperty function in favor of the CfgMgr32 ↵Jordan Woyak
versions. SetupAPI seems to be no longer recommended.
2025-11-05WiimoteReal/IOWin: Use Common::GetDeviceInterfaceList.Jordan Woyak
2025-11-05USBUtils: Replace GetDeviceNameUsingSetupAPI with ↵Jordan Woyak
GetDeviceNameUsingCfgMgr32. SetupAPI seems to be no longer recommended.
2025-11-04WindowsDevice: Add GetDeviceInterfaceList function and ↵Jordan Woyak
NullTerminatedStringList template.
2025-11-04macOS: UI fixes for dark modeSimonx22
2025-11-04Merge pull request #14061 from jordan-woyak/config-info-spin-mutexJordan Woyak
ConfigInfo: Cleanups and change mutex to a spin lock.
2025-11-04Merge pull request #13626 from jordan-woyak/non-global-hookable-eventJordan Woyak
Common: Make HookableEvent use non-static data.
2025-11-04Debugger: Ignore bctr when stepping outVampireFlower
2025-11-04feat(profiles): add "open profiles folder" button + add dropdown button for ↵iTrooz
profile actions Co-Authored-By: iTrooz <hey@itrooz.fr> Co-Authored-By: Max Chateau <maxban.chateau@gmail.com> Co-Authored-By: Damien R. <rodriguezdamien1677@gmail.com>
2025-11-04DolphinAnalytics: Use Config::Get instead of accessing g_Config.Jordan Woyak
2025-11-03MainWindow: Change save state file filter to use *.s?? patternVampireFlower
2025-11-02Config: Make ConfigInfo use Common::SpinLock to protect the CachedValue. ↵Jordan Woyak
These locks are nearly always uncontested and this makes Config::Get faster.
2025-11-02Common: Add AtomicMutex and SpinMutex classes as faster alternatives to ↵Jordan Woyak
std::mutex.
2025-11-02Config/ConfigInfo: Cleanups.Jordan Woyak
2025-11-02Common: Make HookableEvent use non-static data.Jordan Woyak
Co-authored-by: Dentomologist <dentomologist@gmail.com>
2025-11-02VideoCommon: fix wrong path to glslang includeiwubcode
2025-11-02Call JitInterface::UpdateMembase from PowerPC::MSRUpdatedJosJuice
When the interpreter calls MSRUpdated, we should update the membase variable. Not because the interpreter itself needs it, but because the JIT needs it if it's falling back to the interpreter for an instruction that sets the MSR. Additionally, the JIT's FallBackToInterpreter needs to read back the new membase value afterwards. This fixes games crashing on JitArm64 if mtmsr is set to fall back to interpreter. I was unable to reproduce the issue on Jit64, presumably due to a fortunate series of coincidences (instructions that set MSR are always followed by an exception exit, and PowerPCManager::CheckExternalExceptions was always calling JitInterface::UpdateMembase, and Jit64::WriteExceptionExit was always calling Jit64::EmitUpdateMembase.)
2025-11-02Merge pull request #14042 from iwubcode/bp_functions_globalJMC47
VideoCommon: move global variables out of BPFunctions
2025-11-02Merge pull request #13975 from iwubcode/shader_includesJMC47
VideoBackends / VideoCommon: add support for specifying include files in shader code
2025-11-02StringUtil: Replace strerror with Common::LastStrerrorString.Jordan Woyak
2025-11-02StringUtil: Make non-Windows WStringToUTF8 implementation use iconv instead ↵Jordan Woyak
of deprecated std::codecvt features.
2025-11-02StringUtil: Fix many clang-tidy warnings.Jordan Woyak
2025-11-01Core/IOS/FS: Clean up some hard to read NAND state saving logic.Jordan Woyak
2025-11-01Merge pull request #14057 from TellowKrinkle/VkRenderWrongLayoutJosJuice
VideoCommon: Fix render to texture in wrong layout
2025-11-01Merge pull request #14035 from Dentomologist/pauseandlock_refactoringJosJuice
PauseAndLock Refactoring
2025-11-01Merge pull request #14034 from JoshuaVandaele/byeprofileJosJuice
JitRegister: Remove OProfile profiler
2025-11-01Merge pull request #14054 from Dentomologist/libmgba_fix_build_when_disabledJosJuice
libmgba: Fix build when disabled