Commit graph

11951 commits

Author SHA1 Message Date
Henrik Rydgård
88a209a342 Move the report bool into the flags field 2023-04-08 09:22:02 +02:00
Henrik Rydgård
d077a75aa4 Merge "save" and "perGame" into a flags field 2023-04-08 09:22:02 +02:00
Henrik Rydgård
b84f723a7f Make the save and per-game flags non-optional 2023-04-08 09:22:02 +02:00
Henrik Rydgård
b3d85ae89a Prepare for settings move 2023-04-08 09:22:02 +02:00
Henrik Rydgård
6ac45ddba1 Extract the ConfigSetting implementation into its own file. 2023-04-08 09:22:02 +02:00
Henrik Rydgård
5a1e9ed8f1 Add ConfigSettings.cpp/h 2023-04-08 09:22:02 +02:00
Henrik Rydgård
873bc7c295 Remove <functional> from config.cpp 2023-04-08 09:22:02 +02:00
Henrik Rydgård
12bd0ed26d Restore the shared_ptrs 2023-04-07 10:35:01 +02:00
Henrik Rydgård
ee6234ecb6 I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer.

Needed for later config refactorings, good to get in early.
2023-04-07 10:35:01 +02:00
Henrik Rydgård
f390c3a6ee
Merge pull request #17244 from unknownbrackets/debugger-memcheck
Debugger: Trigger mem breakpoints for mirrors
2023-04-06 07:56:56 +02:00
Unknown W. Brackets
6df939034a Core: Cleanup some sign extensions for clarity. 2023-04-05 17:16:51 -07:00
Unknown W. Brackets
142707ccf3 x86jit: Reduce memory breakpoint codegen.
Was generating a lot of code and, in some games, burning through the jit
cache causing constant recompilation with just a few breakpoints.
2023-04-05 17:14:51 -07:00
Unknown W. Brackets
e73474e590 Debugger: Cache memcheck ranges.
Rebuilding these can be a bit slow each time, speed up jit compilation by
caching them.
2023-04-05 17:13:00 -07:00
Lubos
cc1dd22e0f OpenXR - Option to disable HUD detection added 2023-04-05 22:49:46 +02:00
Unknown W. Brackets
1d3f262eda Debugger: Trigger mem breakpoints for mirrors. 2023-04-05 06:57:42 -07:00
Unknown W. Brackets
09f3c446b8 Debugger: Improve perf with write-only memchecks. 2023-04-05 06:36:40 -07:00
Henrik Rydgård
4e0babc950 Add a "reset to default" for all float-slider settings
Unfortunately, the default values from the configs are not exposed
outside Config.cpp, so there's duplication.

Need to figure out how to do fix that, but it's out-of-scope for this
PR.
2023-04-05 10:50:53 +02:00
Henrik Rydgård
ff907bd523 Fix crash in MIPSStackWalk 2023-04-05 09:48:03 +02:00
Henrik Rydgård
8f96ec371e Rename iBufFilter -> iDisplayFilter 2023-04-05 09:34:18 +02:00
Andreas Stieger
822592c6b1 Fix build with GCC13: various standard includes 2023-04-05 00:20:14 +02:00
Henrik Rydgård
aba026f7e9 Add back our older VFPU approximations, as fallbacks if files are missing.
PR #16984 added more accurate versions of these functions, but they require
large lookup tables stored in assets/.

If these files are missing, PPSSPP would simply crash, which isn't good.

We should probably try to warn the user somehow that these files are
missing, though...
2023-04-03 11:33:41 +02:00
Henrik Rydgård
d223d3c316 Rename CenterDisplayOutputRect to CalculateDisplayOutputRect 2023-04-02 22:29:08 +02:00
Henrik Rydgård
2fa93982ea Add support for integer scale factor for display
This is mainly useful if you want an authentic pixellated look with 1x
rendering (or software) and nearest display filter. It'll simply round
down the auto-scaled sized to the nearest integer scale factor,
configuring exactly which one isn't that interesting since they all are
gonna look good.

Fixes #17093
2023-04-02 22:29:08 +02:00
Henrik Rydgård
f1165bd2ae
Merge pull request #17225 from unknownbrackets/savestate-minor
SaveState: Attempt to recover from missing files
2023-04-02 21:38:54 +02:00
Unknown W. Brackets
269f01f841 SaveState: Attempt to recover from missing files.
If there were files open before that don't exist, things could go badly.
But we could at least load the state file and hope the game doesn't break.
That's better that refusing to load at all.
2023-04-02 12:17:59 -07:00
Henrik Rydgård
d996fb74d4 MSVC: Set language standard to c++17.
Noticed that we were getting some new warnings after merging the
constexpr stuff.
2023-04-02 17:55:15 +02:00
Henrik Rydgård
fc62d587c0 Fix whitespace issues 2023-04-02 16:36:39 +02:00
Герман Семенов
8d5af48efd Core: using if constexpr C++17 optimization 2023-04-02 16:35:57 +02:00
Henrik Rydgård
d1e21ab896 Fix return value from control mapper Key. Fixes volume key issue on Android. 2023-04-02 10:41:26 +02:00
Henrik Rydgård
9146020aa4 Logic fix, optimization, remove hack. See post-comments on #17215 2023-04-01 22:45:26 +02:00
Henrik Rydgård
47785aa2bb
Merge pull request #17215 from hrydgard/multi-mapping-input
Control map multiple keys to one output
2023-04-01 20:47:45 +02:00
Henrik Rydgård
33ba6f6f1a Fix for menu navigation with DInput controllers on Windows. Bit of a hack. 2023-04-01 20:28:48 +02:00
Henrik Rydgård
c1b5aed9b7 Cleanup, confine g_controllerMap access to KeyMap.cpp 2023-04-01 20:28:42 +02:00
Lubos
de462f481f OpenXR - Disable stereo in Motorstorm 2023-04-01 19:48:53 +02:00
Henrik Rydgård
d523005c2b Cleanup 2023-04-01 19:02:20 +02:00
Henrik Rydgård
88e73801fe Fix the binding UI to support multi-bind 2023-04-01 17:51:45 +02:00
Henrik Rydgård
8c9fee064e Display multi-mappings correctly in the mapping list 2023-04-01 15:00:22 +02:00
Henrik Rydgård
49a2c93b66 Make multi-mapping save-able, add test to verify backwards and forwards compat 2023-04-01 13:51:00 +02:00
Henrik Rydgård
0e1c42ce70 Plumb multimappings all the way through. 2023-04-01 13:50:57 +02:00
Henrik Rydgård
f3012f6914 Break out the signed->unsigned axis mapping 2023-04-01 09:07:29 +02:00
Henrik Rydgård
0b574613b9 Address assorted feedback 2023-04-01 09:01:27 +02:00
Henrik Rydgård
04321284c0 Remove redundant callback 2023-04-01 08:57:42 +02:00
Henrik Rydgård
04d3d3111c Clean up __Ctrl button functions. 2023-04-01 08:55:45 +02:00
Henrik Rydgård
9804a905c8 More tweaks (work around the old problem where lingering analog values biased the digital input) 2023-03-31 20:27:30 +02:00
Henrik Rydgård
48993f4f4b Control: Add debug display, do assorted fixes. 2023-03-31 20:12:48 +02:00
Henrik Rydgård
025ec248e4 Don't need two SetCallback functions. 2023-03-31 11:11:46 +02:00
Henrik Rydgård
778d9ac5ca Handle mapping signed axis to our only unsigned input, VIRTKEY_SPEED_ANALOG. 2023-03-31 11:05:33 +02:00
Henrik Rydgård
ea60ff2235 Add missing locking to control mapper 2023-03-31 11:05:33 +02:00
Henrik Rydgård
88e89653b1 Bring back zeroing of the opposite direction. 2023-03-31 11:05:33 +02:00
Henrik Rydgård
fa0fb6eee6 Rework and simplify VIRTKEY_SPEED_ANALOG 2023-03-31 11:05:33 +02:00