summaryrefslogtreecommitdiff
path: root/Source
AgeCommit message (Collapse)Author
2025-04-30Merge pull request #13453 from tygyh/Use-underlying-methodJordan Woyak
DolphinQt/FIFO/FIFOAnalyzer: Use Common::ToUnderlying
2025-04-30Merge pull request #13567 from ↵Jordan Woyak
tygyh/UnitTests-Rename-lambda-parameters-which-hide-previous-declarations UnitTests: Rename lambda parameters which hide previous declarations
2025-04-30Merge pull request #13587 from jordan-woyak/manual-valueAdmiral H. Curtiss
Common: Move some duplicate container element construction logic into a ManuallyConstructedValue template.
2025-04-30VideoBackends/Vulkan: Use WorkQueueThreadSP for swap commands.Jordan Woyak
2025-04-30Core: Use WorkQueueThreadSP in NetKDRequestDevice.Jordan Woyak
2025-04-30Core: Use WorkQueueThreadSP in NetIPTopDevice.Jordan Woyak
2025-04-30Core: Use WorkQueueThreadSP in DVDThread.Jordan Woyak
2025-04-30Merge pull request #13579 from jordan-woyak/work-queue-thread-cleanupJordan Woyak
WorkQueueThread: Implement in terms of WaitableSPSCQueue. Add unit tests.
2025-04-30Merge pull request #13581 from jordan-woyak/dvd-WorkQueueThreadJordan Woyak
DVDThread: Implement with WorkQueueThread and WaitableSPSCQueue.
2025-04-30Common: Move some duplicate container element construction logic into a ↵Jordan Woyak
ManuallyConstructedValue template.
2025-04-30UnitTests: Add tests for WorkQueueThread.Jordan Woyak
2025-04-30WorkQueueThread: Cleanups. Implement in terms of WaitableSPSCQueue. Add ↵Jordan Woyak
single producer WorkQueueThreadSP.
2025-04-30Merge pull request #13436 from JoshuaVandaele/clang-format-19OatmealDome
Update clang-format to version 19
2025-04-28Android: Don't call NativeLibrary methods during class initJosJuice
There's no guarantee that directory initialization has completed by this point, so we can't safely use NativeLibrary. I'm making this change because of a crash being reported in Google Play Console. The exact way it's crashing is mysterious to me, so I'm not sure if this commit fixes the crash, but I think this commit is a reasonable change to make even if it doesn't fix the crash. Backtrace from Google Play Console: #00 pc 0x0000000000469074 /data/app/~~m0kqybFNfeqnDenQFc53XQ==/org.dolphinemu.dolphinemu-Mtaw0lU8DVUQbte2ZjBp3w==/lib/arm64/libmain.so (std::__ndk1::pair<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>>::pair[abi:nn180000]<char const* const&, char const* const&, 0>(char const* const&, char const* const&)) (BuildId: 64cfebf5b574b6729ebc51799aa94ccc3238cbcc) #01 pc 0x0000000000468e9c /data/app/~~m0kqybFNfeqnDenQFc53XQ==/org.dolphinemu.dolphinemu-Mtaw0lU8DVUQbte2ZjBp3w==/lib/arm64/libmain.so (std::__ndk1::pair<std::__ndk1::__tree_iterator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>>, std::__ndk1::__tree_node<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>>, void*>*, long>, bool> std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>>, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>>>>::__emplace_unique_impl<char const* const&, char const* const&>(char const* const&, char const* const&)) (BuildId: 64cfebf5b574b6729ebc51799aa94ccc3238cbcc) #02 pc 0x0000000000462f08 /data/app/~~m0kqybFNfeqnDenQFc53XQ==/org.dolphinemu.dolphinemu-Mtaw0lU8DVUQbte2ZjBp3w==/lib/arm64/libmain.so (Common::Log::LogManager::GetLogTypes()) (BuildId: 64cfebf5b574b6729ebc51799aa94ccc3238cbcc) #03 pc 0x000000000044339c /data/app/~~m0kqybFNfeqnDenQFc53XQ==/org.dolphinemu.dolphinemu-Mtaw0lU8DVUQbte2ZjBp3w==/lib/arm64/libmain.so (Java_org_dolphinemu_dolphinemu_NativeLibrary_GetLogTypeNames+56) (BuildId: 64cfebf5b574b6729ebc51799aa94ccc3238cbcc) #04 pc 0x000000000031456c /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+108) #05 pc 0x0000000000781508 /apex/com.android.art/lib64/libart.so (nterp_helper+152) #06 pc 0x00000000002d94d4 /data/app/~~m0kqybFNfeqnDenQFc53XQ==/org.dolphinemu.dolphinemu-Mtaw0lU8DVUQbte2ZjBp3w==/base.apk (org.dolphinemu.dolphinemu.features.settings.ui.SettingsFragmentPresenter.<clinit>+16) [...]
2025-04-28FifoPlayer: Make functions staticDr. Dystopia
2025-04-28Core, VideoCommon: Fix crash at shutdown due to destructor orderingMihai Brodschi
Previously, PerformanceTracker registered a callback to be updated on emulation state changes. PerformanceTrackers live in a global variable (g_perf_metrics) within libvideocommon. The callback was stored in a global variable in libcore. This created a race condition at shutdown between these libraries, when the PerfTracker's destructor tried to unregister the callback. Notify the PerfTracker directly from libcore, without callbacks, since Core.cpp already references g_perf_metrics explicitly. Also rename Core::CallOnStateChangedCallbacks to NotifyStateChanged to better reflect what it's doing.
2025-04-27Core: Use MoveOnlyFunction for RunOnCPUThread.Jordan Woyak
2025-04-27VideoCommon: Use MoveOnlyFunction for AsyncRequests.Jordan Woyak
2025-04-27Common: Add MoveOnlyFunction.Jordan Woyak
2025-04-27CMake: Explicitely link udev if LIBUDEV_FOUND is setJoshua Vandaële
2025-04-27DVDThread: Implement with WorkQueueThread and WaitableSPSCQueue.Jordan Woyak
2025-04-26Hide DirectoryBlob boot.bin files from game listJosJuice
Extracted games contain a boot.bin file that contains the disc header. These boot.bin files are considered valid volumes by Dolphin, since Dolphin only checks the disc header to determine if something is a valid GC/Wii disc. Running them doesn't make any sense, though. boot.bin files used to not be scanned by Dolphin due to their file extension, but .bin was added to the list of file extensions to scan for in 494e2c0. To stop them from showing up in the game list, let's update the ShouldHideFromGameList mechanism.
2025-04-26Merge pull request #13590 from tygyh/UCodes-Remove-redundant-qualifiersTilka
UCodes: Remove redundant qualifiers
2025-04-26Config: Add locking for config changed callbacksJosJuice
Different threads are adding and calling callbacks, so this should have some locking. This is both to ensure thread safety when accessing `s_callbacks` and to ensure that there won't be situations where a callback gets called after it's removed. `s_callback_guards` is also accessed from multiple threads and has therefore been made atomic.
2025-04-26Android: Allow reporting start to analytics for non-main activityJosJuice
a1691a4 made it so analytics start events can only be generated when starting the main activity. However, some users launch Dolphin's emulation activity from a separate frontend application, bypassing Dolphin's main activity. This change adjusts the logic so that start events can be generated if any activity is started after 6 hours of inactivity. This more closely matches the behavior we had before a1691a4, while still ensuring duplicate start events aren't generated. I've also fixed the inconsistent indentation in ActivityTracker.kt.
2025-04-26Merge pull request #13514 from LillyJadeKatrin/retroachievements-failed-load-bugJosJuice
Call AchievementManager CloseGame on load failures
2025-04-25Config: Add [[nodiscard]] to AddConfigChangedCallbackDentomologist
Require callers of Config::AddConfigChangedCallback and CPUThreadConfigCallback::AddConfigChangedCallback to handle the returned ConfigChangedCallbackIDs to hopefully prevent future issues with callbacks getting called after their associated objects have been destroyed.
2025-04-25VideoConfig: Remove ConfigChangedCallback on shutdownDentomologist
2025-04-25FreeLook: Remove ConfigChangedCallback on shutdownDentomologist
2025-04-25UICommon: Merge ConfigChangedCallbacksDentomologist
Use a single lambda as a callback which calls InitCustomPaths and RefreshConfig instead of having separate callbacks for each of them. This fixes the callback for InitCustomPaths not being removed on shutdown; the callback for the lambda (previously for RefreshConfig) is already removed in Shutdown().
2025-04-25Settings: Remove ConfigChangedCallback on shutdownDentomologist
2025-04-25AchievementManager: Remove ConfigChangedCallback on shutdownDentomologist
Prevent SetHardcoreMode from being called after m_client is set to nullptr. rc_client_set_hardcore_enabled() checks for nullptr so this didn't cause any problems, but better not to rely on that. Also prevents multiple SetHardcoreMode callbacks from piling up when repeatedly toggling Config::RA_ENABLED.
2025-04-25MainWindow: Fix use-after-free during shutdownDentomologist
Remove ConfigChangedCallback in MainWindow's destructor to prevent the callback from accessing the destroyed MainWindow afterward. After MainWindow is destroyed UICommon::Shutdown calls LogManager::Shutdown which ultimately triggers any remaining callbacks. This resulted in calling MainWindow::OnHardcoreChanged, which crashed in debug builds and didn't have any obvious effect in release builds.
2025-04-25UCodes: Remove redundant qualifiersDr. Dystopia
2025-04-25Core/HW/EXI: Remove redundant `inline` specifiersDr. Dystopia
2025-04-25Core/HW/GCMemcard: Make variables constantDr. Dystopia
2025-04-25Merge pull request #13451 from vyuuui/numeric_labelsTilka
Add numeric label support to assembler
2025-04-25Merge pull request #13476 from jordan-woyak/sdl-headerTilka
InputCommon: Move SDL Device class into its own cpp/h files.
2025-04-25Merge pull request #13506 from JosJuice/android-time-playedTilka
Android: Show time played in game details
2025-04-25Merge pull request #13487 from ↵Tilka
Dentomologist/performancemetrics_fix_window_arrangement PerformanceMetrics: Fix window arrangement
2025-04-25Merge pull request #13497 from hoogmin/modernize_fs_pathTilka
Core/Common/FileUtil.cpp: Use std path utility for automatic path separator handling.
2025-04-25DSPHLE: set accelerator gainTillmann Karras
2025-04-25DSPAccelerator: update comment (NFC)Tillmann Karras
2025-04-25DSPAccelerator: rename MMIOPCMHalt to MMIOPCMNoIncTillmann Karras
2025-04-25DSP tests: update DSP MMIO labelsTillmann Karras
2025-04-25DSP tests: clean up unused codeTillmann Karras
2025-04-25Address Pokechu22's feedbackTillmann Karras
2025-04-25Fix DSP loop test init order, add DSP pcm testxperia64
2025-04-25Name gain shift/scaling betterxperia64
2025-04-25Update ACDRAW/ACDSAMP reg names in DSPTables and DSPSpy testsxperia64