Léo Lam
fd7df2ccae
Use fmt::localtime instead of thread-unsafe std::localtime
...
fmt::localtime is also less awkward to use compared to std::localtime.
2021-10-15 22:49:13 +02:00
Léo Lam and GitHub
2187f11b08
Merge pull request #10167 from leoetlino/log-level-constant
...
Turn MAX_LOGLEVEL into a true constant (and fix self-comparison warning)
2021-10-15 22:35:43 +02:00
Léo Lam
7855e5f73b
Turn MAX_LOGLEVEL into a true constant (and fix self-comparison warning)
...
This replaces the MAX_LOGLEVEL define with a constexpr variable
in order to fix self-comparison warnings in the logging macros
when compiling with Clang. (Without this change, the log level check
in the logging macros is expanded into something like this:
`if (LINFO <= LINFO)`, which triggers a tautological compare warning.)
2021-10-15 21:51:01 +02:00
Léo Lam and GitHub
6bf10e0276
Merge pull request #10149 from malleoz/audiodump-add-timecode
...
Add Game ID, timecode to dspdump and dtkdump filenames
2021-10-15 19:42:30 +02:00
JosJuice and GitHub
6caf51f966
Merge pull request #9696 from JosJuice/android-scoped-storage
...
Android: Scoped storage [To be merged in October]
2021-10-15 18:17:16 +02:00
JMC47 and GitHub
7d6393332d
Merge pull request #10164 from Pokechu22/per-pixel-lighting-vertex-color
...
VideoCommon: Fix color channel logic when per-pixel lighting is in use
2021-10-14 14:17:06 -04:00
Scott Mansell and GitHub
0d5f2810e7
Merge pull request #10166 from fpdotmonkey/heed-tev-switch-warning
...
Silence the -Wswitch warnings in Tev
2021-10-14 20:42:11 +13:00
Fletcher Porter
f16e9045a2
Silence the -Wswitch warnings in Tev
...
The compiler was loudly announcing each and every branch Tev was not checking in
a switch statement, but Tev has learned it's lesson and will produce that
warning no more.
2021-10-13 23:54:06 -07:00
Pokechu22
a372a5947b
VideoCommon: Fix color channel logic when per-pixel lighting is in use
...
This was broken in #10012 (specifically by 06579e4d53 and c3dec34391 ).
2021-10-13 20:43:32 -07:00
Léo Lam and GitHub
023eb0b702
Merge pull request #10085 from Pokechu22/C26495
...
Fix all uninitialized variable warnings (C26495)
2021-10-13 21:52:22 +02:00
Pokechu22
78bfd25964
Fix all uninitialized variable warnings (C26495)
2021-10-13 12:32:16 -07:00
Pokechu22
525e6b2194
MMU: Replace TryReadResult and TryWriteResult with std::optional
2021-10-13 11:44:28 -07:00
Pokechu22
673f886a7e
MMU: Replace uses of cassert with Common/Assert.h
2021-10-13 11:44:28 -07:00
Pokechu22
aacc1a5e49
IOFile: Add std::array functions
2021-10-13 11:44:28 -07:00
Léo Lam and GitHub
a0a91ec4b8
Merge pull request #10163 from JosJuice/b
...
Android: Improve OpenModeToAndroid's handling of 'b'
2021-10-13 20:43:33 +02:00
Léo Lam and GitHub
71051b7027
Merge pull request #10043 from JosJuice/true-crime
...
Raise program exception on floating point exceptions
2021-10-13 20:39:34 +02:00
JosJuice
c250ed03cf
GameINI: Enable DivByZeroExceptions where needed
...
Combined with the previous commits in this pull request,
this fixes https://bugs.dolphin-emu.org/issues/7230 (True Crime:
New York City) and https://bugs.dolphin-emu.org/issues/9650
(Call of Duty: Finest Hour).
2021-10-13 17:42:56 +02:00
JosJuice
25bff91054
Interpreter: Fix NI_div ZX check
2021-10-13 17:42:56 +02:00
JosJuice
9f525d69c8
Jit: Raise program exception on floating point exceptions
...
This is done entirely through interpreter fallbacks. It would
probably be possible to implement this using host exception
handlers instead, but I think it would be a lot of complexity
for a rarely used feature, so let's not do it for now.
For performance reasons, there are two settings for this feature:
One setting which does enables just what True Crime: New York City
needs and one setting which enables it all. The latter makes
almost all float instructions fall back to the interpreter.
2021-10-13 17:42:56 +02:00
JosJuice
7f7748e181
Interpreter: Raise program exception on floating point exceptions
2021-10-13 17:42:56 +02:00
JosJuice
c3bcc67653
PowerPC: Update FEX on FPSCR store instead of FPSCR load
...
This is needed not only for the next commit, but also for
correctly emulating float instructions that write to CR1.
2021-10-13 17:42:56 +02:00
JosJuice
89a464dafa
Interpreter: Optimize FEX calculation
...
The next commit will make the interpreter run this after every
float instruction, so I think a little optimization here is justified.
2021-10-13 17:42:56 +02:00
JosJuice
83c6df1965
PowerPC: Set SRR1 correctly for program exceptions
2021-10-13 17:42:56 +02:00
JosJuice
b28e5149a7
Android: Improve OpenModeToAndroid's handling of 'b'
...
Now it also works when b isn't at the very end. (+ goes after b.)
2021-10-13 17:39:09 +02:00
Léo Lam and GitHub
4541abd1c0
Merge pull request #10121 from malleoz/game-window-cursor-always-on
...
DolphinQt: Add option to always show Mouse Cursor
2021-10-13 12:22:10 +02:00