JosJuice
296efad2e3
Android: Add missing "World" entry in country list
...
Fixes an IndexOutOfBoundsException. (Yeah, attempts at having
cross-language enums are kinda fragile...)
2021-02-11 22:35:18 +01:00
JosJuice
606e6ca3ba
Android: Adjust logic for DOL/ELF long press
...
Android follow-up for 83c1277
. Removes some now unnecessary code
and disables "Set as Default ISO" for DOL, ELF and WAD files.
2021-02-11 22:32:20 +01:00
Léo Lam
bf758fbe7c
Merge pull request #9490 from Dentomologist/fix_expression_scroll_wheel_spam
...
Config: Fix expression window scroll wheel spam
2021-02-11 21:42:00 +01:00
Léo Lam
3ce72d4005
Merge pull request #9408 from sepalani/sni
...
SSL: Workaround to remove SNI from ClientHello
2021-02-11 21:38:41 +01:00
Sepalani
2a15bc6ab2
SSL: Workaround to remove SNI from ClientHello
2021-02-11 23:13:59 +04:00
Léo Lam
a354814240
Merge pull request #9424 from Pokechu22/sw-no-special-case
...
Software: Remove normalization special case
2021-02-11 19:36:45 +01:00
Léo Lam
1fc6fbc2c0
Merge pull request #6075 from sepalani/pcap-log
...
PCAP logging with fake TCP/UDP packet
2021-02-11 00:15:37 +01:00
Léo Lam
ddacbf83f6
Merge pull request #9461 from cbartondock/master
...
Working Game IDs for Elf/Dol files
2021-02-10 22:50:40 +01:00
Léo Lam
1e71904cb9
Merge pull request #9495 from leoetlino/wiki-redirect
...
Qt: Fix "open wiki" option not using the wiki redirect script
2021-02-10 13:14:47 +01:00
Léo Lam
118b2a3580
Core/DSP: Fix improper uses of offsetof
...
According to the C standard, an offsetof expression must evaluate to an
address constant, otherwise it's undefined behavior.
Fixes https://bugs.dolphin-emu.org/issues/12409
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95942
There are still improper uses of offsetof (mostly in JitArm64) but
fixing that will take more effort since there's a PPCSTATE_OFF wrapper
macro that is sometimes used with non-array members and sometimes used
with arrays and variable indices... Let's keep that for another PR.
2021-02-10 02:03:16 +01:00
Dentomologist
43b389410a
Config: Fix expression window scroll wheel spam
...
Fixes the expression window being spammed with the first entry in the
Operators or Functions select menus when scrolling the mouse wheel while
hovering over them.
Fixes https://bugs.dolphin-emu.org/issues/12405
2021-02-09 08:55:01 -08:00
JosJuice
3e4bf57c69
Merge pull request #9423 from MerryMage/arm64-movi2r-test
...
UnitTests: Add MOVI2R test
2021-02-08 10:58:09 +01:00
Markus Wick
9a2d908aba
Merge pull request #9400 from JosJuice/jitarm64-imm
...
JitArm64: More constant propagation optimizations
2021-02-08 10:53:01 +01:00
Léo Lam
7ef8e53c4a
Qt: Fix "open wiki" option not using the wiki redirect script
...
The dolphin-redirect.php script seems to have been present since 2012
at least, but we accidentally stopped using it when the "open wiki"
feature was reimplemented in DolphinQt2 in 2016.
<@delroth> dolphin-redirect.php is slightly smarter and tries to find gameid aliases for e.g. same region
<@delroth> uh, I mean different region
2021-02-08 02:52:29 +01:00
JosJuice
761d7748b6
JitArm64: Fix mistaken use of LSL imm
2021-02-07 13:55:55 +01:00
JosJuice
efeda3b759
JitArm64: More constant propagation optimizations
...
PR 9262 added a bunch of Jit64 optimizations, some of
which were already in JitArm64 and some which weren't.
This change ports the latter ones to JitArm64.
2021-02-07 13:55:35 +01:00
Errorcodebin
8a3fe6e24a
Fix mapping window title bar becoming unresponsive
2021-02-04 14:32:03 +01:00
Markus Wick
b6e9cca64f
Merge pull request #9485 from JosJuice/jitarm64-pc-stp
...
JitArm64: Use STP for pc/npc
2021-02-03 12:22:37 +01:00
iwubcode
77c68a3142
DolphinQt: Fix regression that caused the regex expression to be evaluated incorrectly. If an input expression has a non-alpha character in it, we want to quote it with backticks
2021-02-02 20:36:54 -06:00
MerryMage
1ab7657120
MovI2R: Do not exhaustively test
2021-01-31 13:17:31 +00:00
MerryMage
fe9207bb56
UnitTests: Add MOVI2R test
2021-01-31 13:17:19 +00:00
MerryMage
f65c1df094
Random: Add seeded PRNG
2021-01-31 13:16:45 +00:00
MerryMage
a0b8956f22
JitArm64_Integer: Add optimizations for rlwimix
...
* Check for case when source field is at LSB
* Use BFXIL if possible
* Avoid ROR where possible
2021-01-31 12:05:43 +00:00
MerryMage
8aa2013a2d
Arm64Emitter: Add additional assertions to BFI/UBFIZ
2021-01-31 12:04:57 +00:00
MerryMage
75d92ad628
Arm64Emitter: Prefer BFM/UBFM to EncodeBitfieldMOVInst
2021-01-31 12:04:57 +00:00
MerryMage
be6aec9932
Arm64Emitter: Add BFXIL
2021-01-31 12:04:57 +00:00
Sepalani
82bb5d9915
NetworkCaptureLogger: PCAP support added
...
Log TCP/UDP read/write with fake packet.
2021-01-30 19:35:09 +04:00
cbartondock
83c127784b
Working Game IDs for Elf/Dol files
2021-01-30 09:51:37 -05:00
JosJuice
dd8e504c80
JitArm64: Use STP for pc/npc
2021-01-30 11:56:25 +01:00
Markus Wick
b22073ef59
Merge pull request #9484 from JosJuice/jitarm64-ps-stp
...
JitArm64: Use STP for (parts of) ppcState.ps
2021-01-30 08:51:56 +01:00
JosJuice
91b55824f9
JitArm64: Use STP for (parts of) ppcState.ps
...
The savestate incompatibility problem mentioned in a comment
was solved by d266be5
.
2021-01-30 01:01:01 +01:00
JosJuice
2d9ea42df2
Arm64Emitter: Add asserts for LDP/STP imm out of range
2021-01-30 00:25:33 +01:00
Sepalani
b363962757
BreakpointWidget: Remove unnecessary code
...
PPCDebugInterface.Clear() is called by Core on shutdown instead
2021-01-28 21:23:18 +04:00
Sepalani
289637f92f
NetworkCaptureLogger: Move SSL logging
2021-01-28 21:23:18 +04:00
Shawn Hoffman
6829775fac
msbuild: re-enable HAS_OPENGL and HAS_VULKAN
2021-01-27 19:10:53 -08:00
Léo Lam
c386c5acc2
Merge pull request #9366 from iwubcode/freelook_camera_quaternion
...
VideoCommon: allow Free Look to be manipulated by a quaternion
2021-01-28 01:34:09 +01:00
Léo Lam
9ca24ae8e0
Merge pull request #9092 from shuffle2/vshack
...
msbuild: Merge "Core" libs into single DolphinLib
2021-01-28 01:33:46 +01:00
iwubcode
586c689d63
VideoCommon: use Quaternion for Free Look orientation
2021-01-27 18:22:10 -06:00
iwubcode
d35287b6e4
Common: update Quaternion to allow rotating pitch, yaw, and roll all at once
2021-01-27 18:22:10 -06:00
iwubcode
544692f96a
Common: add convenience function to convert a Quaternion to a Matrix44
2021-01-27 18:22:10 -06:00
SirMangler
9f6d88880e
MemoryWidget: Add 'Offset' and General Improvements
2021-01-28 01:04:09 +01:00
Shawn Hoffman
500a694ca8
msbuild: bundle all dolphin "core" code into single library
2021-01-27 14:29:49 -08:00
Shawn Hoffman
5770ff01f3
rename D3DCommon/Common to D3DCommon/D3DCommon
2021-01-27 14:29:48 -08:00
Shawn Hoffman
527b5a9761
normalize common filenames in VideoBackends/D3D12
2021-01-27 14:29:48 -08:00
Shawn Hoffman
a0aeb5b0b9
normalize common filenames in VideoBackends/D3D
2021-01-27 14:29:48 -08:00
Shawn Hoffman
d7fd892fde
normalize common filenames in VideoBackends/Vulkan
2021-01-27 14:29:48 -08:00
Shawn Hoffman
ef70fe05bf
normalize common filenames in VideoBackends/Null
2021-01-27 14:29:48 -08:00
Shawn Hoffman
ff4f67492b
normalize common filenames in VideoBackends/OGL
2021-01-27 14:29:48 -08:00
Shawn Hoffman
3193f3d5c4
rename Core/IOS/FS/FileSystem.cpp to FileSystemCommon.cpp
2021-01-27 14:29:48 -08:00
Shawn Hoffman
7e1df34735
rename InputCommon/ControllerInterface/Device to CoreDevice
2021-01-27 14:29:48 -08:00
Shawn Hoffman
0be1491ef0
rename ciface::Wiimote to ciface::WiimoteController
2021-01-27 14:29:48 -08:00
Shawn Hoffman
84128d9532
rename Common/File to Common/IOFile
2021-01-27 14:29:48 -08:00
Shawn Hoffman
07fd02f207
rename Core/Analytics to Core/DolphinAnalytics
2021-01-27 14:29:47 -08:00
Léo Lam
96e3360f05
Merge pull request #9452 from JosJuice/android-wii-saves
...
Android: Add "Import Wii Save"
2021-01-27 23:00:47 +01:00
Markus Wick
7290cd0032
Merge pull request #9478 from JosJuice/double-assert-attempt-2
...
JitArm64: Fix false positive "turned singles into doubles" asserts
2021-01-27 20:20:59 +01:00
Markus Wick
b1fdd14ed1
Merge pull request #9314 from smurf3tte/dcbx
...
Jit: Fix correctness issue in dcbf/dcbi/dcbst
2021-01-27 20:12:21 +01:00
JosJuice
12aa1071cb
Android: Re-implement a subset of CompletableFuture
...
Imagine if Android phones actually got updates
2021-01-27 20:10:07 +01:00
JosJuice
347551a01d
Android: Implement save overwrite confirmation
2021-01-27 20:10:07 +01:00
JosJuice
cd4ccda51c
Android: Add "Import Wii Save"
2021-01-27 20:10:06 +01:00
JosJuice
b08306d0b8
Android: Refactor MainPresenter.installWad
...
Also replacing a toast with a dialog so that you have proper
time to read the message.
2021-01-27 20:10:06 +01:00
JosJuice
4a394ffc9c
Android: Merge launchInstallWad into launchOpenFileActivity
2021-01-27 20:10:05 +01:00
JosJuice
80b56b6575
Android: Move InstallWAD to a new WiiUtils class
...
I'm trying to move away from dumping every native method
in NativeLibrary.
2021-01-27 20:10:05 +01:00
Markus Wick
2ada5b422d
Merge pull request #9448 from JosJuice/blr-x30
...
JitArm64: Avoid using X30 with BLR
2021-01-27 20:07:24 +01:00
Léo Lam
8c127a612f
Merge pull request #9416 from Filoppi/patch-9
...
InputCommon: Wrap remaining invalid default input expressions around ``
2021-01-27 19:54:20 +01:00
Léo Lam
6dc0f0dfe6
Merge pull request #9438 from shuffle2/add-shortcut-to-desktop
...
DolphinQT: Gives option to add desktop shortcut
2021-01-27 19:41:09 +01:00
Léo Lam
b597b16f63
Merge pull request #9439 from Darwin-Rist/master
...
Added Opacity settings for touchscreen controls
2021-01-27 19:35:58 +01:00
Léo Lam
28cd6f6520
Merge pull request #9440 from lioncash/qt6
...
DolphinQt: Qt 6.0 forward-compatibility changes
2021-01-27 19:28:43 +01:00
Léo Lam
6086111566
Merge pull request #9467 from iwubcode/gamecube_controllers_widget
...
DolphinQt: Move gamecube controller ui logic to its own widget
2021-01-27 19:24:06 +01:00
Léo Lam
84ad550c19
Merge pull request #9449 from Filoppi/patch-11
...
Qt: Fix Shake Mapping Indicator not showing deadzone
2021-01-27 19:19:58 +01:00
Léo Lam
42b55e8fa3
Merge pull request #9450 from Filoppi/patch-12
...
Qt: Fix stock input profiles being deletable
2021-01-27 19:18:51 +01:00
iwubcode
780360b921
DolphinQt: Move gamecube controller ui logic to its own widget
2021-01-27 12:02:39 -06:00
Léo Lam
920dd812ad
Merge pull request #9468 from iwubcode/wiimote_controllers_widget
...
DolphinQt: Move wiimote controller ui logic to its own widget
2021-01-27 18:54:29 +01:00
iwubcode
f3b6c9723c
DolphinQt: Move wiimote controller ui logic to its own widget
2021-01-27 11:27:05 -06:00
Léo Lam
fb09acd01f
Merge pull request #9453 from JosJuice/state-metadata-osd
...
Android: Don't show OSD messages when opening savestate menu
2021-01-27 18:22:39 +01:00
Léo Lam
70447d0281
Merge pull request #9454 from JosJuice/android-ingame-settings-save
...
Android: Fix in-game settings changes not getting saved
2021-01-27 18:17:27 +01:00
JosJuice
5d19558623
JitArm64: Fix false positive "turned singles into doubles" asserts
...
Fixes a regression from 88f3fec
.
2021-01-27 16:11:39 +01:00
Léo Lam
b886c70a43
Merge pull request #9456 from trevor403/breakpoint-loading
...
Breakpoint from string flag parsing using token
2021-01-27 15:53:24 +01:00
Léo Lam
4ba9bb26e9
Merge pull request #9455 from lioncash/traversal
...
TraversalProto: Minor cleanup
2021-01-27 15:51:29 +01:00
Shawn Hoffman
a02a629958
windows: fix unregistering VEH
2021-01-27 05:15:54 -08:00
Léo Lam
305faa73ec
Merge pull request #9436 from shuffle2/asan
...
msvc: enable asan compat
2021-01-27 13:24:26 +01:00
Léo Lam
2537ea77ee
Merge pull request #9460 from jordan-woyak/wiimote-dc-crash-fix
...
WiimoteReal: Fix crash on real Wii Remote disconnect on Windows.
2021-01-27 13:14:52 +01:00
Léo Lam
bc14e4a0f0
Merge pull request #9463 from Dentomologist/fix_CreateTempDir_calls
...
UnitTests: Add setup error checking
2021-01-27 13:12:05 +01:00
Léo Lam
093978b2e0
Merge pull request #9466 from iwubcode/common_controllers_widget
...
DolphinQt: Move common controller interface logic to its own widget
2021-01-27 13:06:20 +01:00
JosJuice
d00430470b
JitArm64: Update registers last used before start of instruction
...
Let's reset m_last_used for each register that will be used
in an instruction before we start allocating any of them,
so that one of the earlier allocations doesn't spill a
register that we want in a later allocation. (We must still
also increment/reset m_last_used in R and RW, otherwise we
end up in trouble when emulating lmw/stmw since those access
more guest registers than there are available host registers.)
This should ensure that the asserts added earlier in this
pull request are never triggered.
2021-01-26 22:53:33 +01:00
JosJuice
f17cd3750a
JitArm64: Remove default parameters from Arm64FPRCache::R/RW
...
It obscures more than it helps in my opinion.
2021-01-26 22:53:33 +01:00
JosJuice
88f3fec04e
JitArm64: Add asserts for unexpected single to float conversions
...
If the register pressure is high when allocating registers,
Arm64FPRCache may spill a guest register which we are going to
allocate later during the current instruction, which has the
side effect of turning it into double precision. This will have
bad consequences if we are assuming that it is single precision,
so let's add some asserts to detect if that ever happens.
2021-01-26 22:53:33 +01:00
smurf3tte
66b992cfe4
Jit: Fix correctness issue in dcbf/dcbi/dcbst
...
PR #2663 added a Jit64 implementation of dcbX and a fast path to skip JIT cache invalidation. Unfortunately, there is a mismatch between address spaces in this optimization. It tests the effective address (with the top 3 bits cleared) against the valid block bitset which is intended to be indexed by physical address. While this works in the common case, it fails (for example) when the effective address is in the 7E... region (a.k.a. "fake VMEM"). This may also fall apart under more complex memory mapping scenarios requiring full MMU emulation.
The good news is that even without this fast path, the underlying call to JitInterface::InvalidateICache() still does very little work in the common case. It correctly translates the effective address to a physical address which it tests against the valid block bitset, skipping invalidation if it is not necessary. As such, the cost of removing the fast path should not be too high.
The Jit64 implementation is retained, though all it does now is emit a call. This is marginally more efficient than simple interpreter fallback, which involves an extra call. The JitArm64 implementation has also been fixed.
The game Happy Feet is fixed by this change, as it loads code in the 7E... address region and depends upon JIT cache invalidation in reponse to dcbf.
https://bugs.dolphin-emu.org/issues/12133
2021-01-23 15:17:09 -08:00
iwubcode
67b9e94e4d
DolphinQt: Move common controller interface logic to its own widget
2021-01-23 15:17:38 -06:00
JosJuice
67491979ab
JitArm64: Avoid using X30 with BLR
...
At least on some CPUs (I found out about this from the
Arm Cortex-A76 Software Optimization Guide), using X30
with BLR is one cycle slower than using another register.
2021-01-23 10:32:44 +01:00
Dentomologist
83f912b58a
UnitTests: Add setup error checking
...
Check return value of calls to File::CreateTempDir() from CoreTiming,
FileSystem, and MMIO test classes to verify the test user directory
exists, and fail the tests otherwise.
2021-01-22 11:49:59 -08:00
Trevor Rudolph
59058bae0a
Breakpoint from string flag parsing using token
...
Since the string includes hex, the break_on_hit 'b' flag can be pulled from the address by accident
istringstream for BreakPoint parsing
2021-01-21 12:33:42 -05:00
Jordan Woyak
bb2c50ac94
WiimoteReal: Fix crash on real Wii Remote disconnect on Windows caused by dangling pointer.
2021-01-20 17:33:43 -06:00
iwubcode
af7384002f
FreeLookManager: acquire global input lock before accessing individual FreeLook control states
2021-01-20 12:25:21 -06:00
Lioncash
b425250a7b
TraversalClient: Make use of std::string_view with ConnectToClient()
...
Same behavior, but allows the use of non-allocating string types with
the interface.
2021-01-20 12:24:06 -05:00
Lioncash
cb4ca7837a
TraversalClient: Prevent uninitialized values from occurring in MakeENetAddress
...
Previously, eaddr would only be partially initialized in the ipv6 case.
Even if there's no support for it, we may as well ensure that the
variable always has deterministic initialization.
While we're at it, we can make the parameter a const reference, given no
members are modified.
2021-01-20 12:24:05 -05:00
Lioncash
f0c6e696fd
TraversalProto: Convert typedefs into using aliases
...
Same behavior, more straightforward reading.
2021-01-20 12:24:05 -05:00
Lioncash
d48b5615ae
TraversalProto: Collapse version enum into a typed variable
...
Same behavior, less code.
2021-01-20 12:24:05 -05:00
Lioncash
d2ea94195c
TraversalProto: Convert TraversalPacketType into an enum class
...
Makes for strong typing and prevents namespace pollution.
2021-01-20 12:24:05 -05:00
Lioncash
2f0fb2056e
TraversalProto: Convert TraversalConnectFailedReason into an enum class
2021-01-20 12:24:05 -05:00
Lioncash
2021175809
TraversalClient: Convert state enum into an enum class
...
Prevents implicit conversions and prevents identifiers from polluting
the class scope.
2021-01-20 12:24:03 -05:00