Commit Graph

35921 Commits

Author SHA1 Message Date
2c5d11cace Merge pull request #9721 from linkmauve/fix-warnings
Fix some warnings found with gcc 11 and ffmpeg master
2021-11-06 14:38:07 +01:00
39ccdc1f98 Merge pull request #10199 from Sintendo/jit64divwxnits
Jit64: divwx - One more micro-optimization
2021-11-03 17:10:39 -04:00
dfb32040bf Jit64: divwx - Micro-optimize division by 2
Prefer using eax to isolate the sign bit. This saves a byte when the
destination ends up as r8-15, because those require a REX prefix.

Before:
41 8B C5             mov         eax,r13d
41 C1 ED 1F          shr         r13d,1Fh
44 03 E8             add         r13d,eax
41 D1 FD             sar         r13d,1

After:
41 8B C5             mov         eax,r13d
C1 E8 1F             shr         eax,1Fh
44 03 E8             add         r13d,eax
41 D1 FD             sar         r13d,1
2021-11-03 21:01:41 +01:00
f18f6cd0a2 Jit64: divwx - Improve comments 2021-11-02 21:50:28 +01:00
5a1333026b VideoCommon: Add missing algorithm include for std::none_of
Otherwise this is an error on gcc/libstdc++, and there are no transitive
includes for this header.
2021-11-02 13:50:21 +01:00
7590f07b80 FrameDump: Remove deprecated call to av_init_packet()
This function was deprecated in ffmpeg in January[1], while its
replacement got introduced in 2015[2], so now might be the time to start
using it in Dolphin. :)

[1] f7db77bd87
[2] a9a6010637
2021-11-02 13:50:21 +01:00
24db6e467a DolphinQt: Fix a -Wunused-result in gcc 11
Also use the correct error check for other similar calls in the same
file, despite nothing being doable on error.
2021-11-02 13:50:21 +01:00
25b136ac17 VideoCommon: Fix a -Wclass-memaccess in gcc 11 2021-11-02 13:50:21 +01:00
7e39a0405b DolphinQt, VideoBackends: Fix all cases of -Wswitch in gcc 11 2021-11-02 13:50:21 +01:00
3d662e746b Core: Fix a -Wshadow warning in gcc 11
This moves the only direct call to zlib’s crc32() into its own
translation unit, but that operation is cold enough that this won’t
matter in the slightest.  crc32_z() would be more appropriate, but
Android has an older zlib version…
2021-11-02 13:50:21 +01:00
ab252aedfa Core, DolphinQt, UICommon: Fix all cases of -Wrange-loop-construct in gcc 11 2021-11-02 13:50:21 +01:00
3c73e46aab GameINI: Change Texture Cache to Safe in RMHJ08.ini and ROM.ini 2021-11-01 21:55:54 +04:00
db02b50d2e Merge pull request #10196 from JMC47/haruhi
GameINI:  Change Texture Cache to Safe in R44J8P
2021-11-01 18:28:58 +01:00
fb2404a4a7 GameINI: Change Texture Cache to Safe in R44J8P 2021-11-01 13:09:27 -04:00
96a6d6fd95 Merge pull request #10184 from JosJuice/android-riivolution
Android: Allow starting game with Riivolution patches from the GUI
2021-10-31 23:44:54 +01:00
fb8b9f3251 Merge pull request #10194 from AdmiralCurtiss/riivolution-edge-cases
Fix some Riivolution file patching edge cases.
2021-10-31 21:24:03 +01:00
98a1027c79 Merge pull request #10195 from sepalani/fix-hle-rii
HLE: Fix hooks overlapping Riivolution patches
2021-10-31 21:12:06 +01:00
e51119c4ce HLE: Fix hooks overlapping Riivolution patches 2021-11-01 00:07:14 +04:00
c39b3df6e7 Translation resources sync with Transifex 2021-10-31 19:00:30 +01:00
e91e04fe1e RiivolutionPatcher: More closely match behavior of filename searching file patches to actual Riivolution. 2021-10-31 05:47:39 +01:00
335a1b5cb5 RiivolutionPatcher: More closely match behavior of folder patches to actual Riivolution. 2021-10-31 05:47:39 +01:00
8b0624f53e Android: Show SD root path in Riivolution activity 2021-10-30 23:24:37 +02:00
22a1f3422c Android: Add Riivolution patch configuration 2021-10-30 23:24:37 +02:00
34021b5ebc Android: Allow starting game with Riivolution patches from the GUI 2021-10-30 23:24:36 +02:00
38fcb9d517 Merge pull request #10193 from Pokechu22/discord-rpc-vcxproj
Externals/discord-rpc: Fix reference to discord_register.h
2021-10-29 21:29:40 +02:00
30cf6c95a5 Merge pull request #10192 from Pokechu22/renderwidget-imgui-include
RenderWidget: Change "imgui.h" to <imgui.h>
2021-10-29 21:27:47 +02:00
8b5c04de7b Externals/discord-rpc: Fix reference to discord_register.h 2021-10-29 12:14:05 -07:00
ef80d51df1 RenderWidget: Change "imgui.h" to <imgui.h>
This was originally intended to fix https://bugs.dolphin-emu.org/issues/12717 but this ended up not being the issue (instead it seems like files just weren't recompiled when imgui was updated due to MSVC weirdness).  Still, using brackets instead of quotes is preferable as this is a library include.
2021-10-29 12:05:21 -07:00
40c2391275 Merge pull request #10147 from UnicorNora/master
GameINI: Update Cheats for GMPE01, GP5E01, GP6E01, GP7E01
2021-10-29 20:53:37 +02:00
663b937728 Merge pull request #10190 from AdmiralCurtiss/cheats-manager-qol
Cheats Manager quality of life improvements.
2021-10-29 19:32:11 +02:00
5bb71760d7 Core/CheatSearchSession: Mark class as final. 2021-10-28 06:50:57 +02:00
b154ba513c Core/CheatSearchSession: Make a few methods const. 2021-10-28 02:16:19 +02:00
6e814cbb8f Qt/CheatSearchWidget: Add a checkbox to force parsing a value as hexadecimal. 2021-10-28 02:00:38 +02:00
b3e17d2772 Qt/CheatSearchFactoryWidget: Refuse to start standard memory region searches when no game is running because the memory size and console type may not be accurate. 2021-10-28 01:59:52 +02:00
d6ad3fbcb5 Qt/CheatsManager: Save and restory geometry. 2021-10-28 01:03:30 +02:00
7558da22d7 Merge pull request #10188 from Pokechu22/imgui-1.85
Externals: Update imgui to 1.85
2021-10-27 02:13:58 -04:00
db54e4f2b0 Externals: Update imgui to 1.85 2021-10-26 15:07:57 -07:00
05b4aecf18 Merge pull request #10186 from leoetlino/hle-hbreload
HLE: Fix hook flag for HBReload
2021-10-26 22:00:25 +02:00
7073a90474 Merge pull request #10177 from Dentomologist/gamelist_grid_mode_fix_select_all
GameList: Fix duplicate selections with ctrl+a in grid view
2021-10-25 17:22:58 +02:00
8cb51f276c HLE: Fix hook flag for HBReload
The reload stub is at a fixed address (0x80001800) so its hook flag
should be HookFlag::Fixed.

Otherwise the hook is installed by HLE::PatchFixedFunctions but
immediately removed by HLE::PatchFunctions (which is called by
HLE::Reload right after PatchFixedFunctions).

Should fix https://bugs.dolphin-emu.org/issues/12716
2021-10-25 16:54:25 +02:00
e4cc1672a2 Merge pull request #10185 from JosJuice/android-fragile
Android: Set android:hasFragileUserData
2021-10-24 22:27:37 +02:00
d39150c368 Android: Set android:hasFragileUserData
This makes Android ask the user whether they want to delete user
data when uninstalling the app instead of always deleting user data,
which is pretty great now that we're forced to use scoped storage.
It only works on Android 10 and up, though.
2021-10-24 21:39:09 +02:00
85bbc0d017 Merge pull request #10182 from Pokechu22/log-enum-class
Convert LOG_TYPE and LOG_LEVELS to enum class
2021-10-24 21:33:57 +02:00
23159da9e1 Translation resources sync with Transifex 2021-10-24 21:18:27 +02:00
04d8cdfe88 Convert LOG_TYPE and LOG_LEVELS to enum class 2021-10-24 11:48:36 -07:00
ba107819ec Create EnumMap 2021-10-24 11:48:36 -07:00
a80fcf38ae Merge pull request #10181 from JosJuice/android-data-app
Android: Adjust string about file manager apps on Android 11
2021-10-24 01:17:49 +02:00
5d5f019921 Merge pull request #10127 from AdmiralCurtiss/riivolution
HLE Riivolution patch support
2021-10-24 00:57:54 +02:00
4f82810845 RiivolutionPatcher: Use FileInfo instead of IOFile when only checking for filesize. 2021-10-24 00:09:09 +02:00
0efff5167d IOS/FS: On NAND redirected files, the source and target of a Rename operation may be on different partitions or devices. Implement a fallback for that. 2021-10-24 00:09:09 +02:00