267 Commits

Author SHA1 Message Date
Silent
d52b0e5dbb
Disallow underclocking in Hardcore mode 2021-06-08 18:38:51 +02:00
Silent
e21f2644d0
Refactor SystemBootParameters ownership 2021-06-08 18:38:12 +02:00
Connor McLaughlin
350049826f Fix a bunch of compiler warnings 2021-06-04 13:14:30 +10:00
Connor McLaughlin
e8a21d32dc CommonHostInterface: Use string list for autofire bindings
Fixes autofire bindings on Android.
2021-05-25 14:14:37 +10:00
Connor McLaughlin
8f23a79d36 CommonHostInterface: Add public method to activate autofire 2021-05-24 21:25:08 +10:00
Connor McLaughlin
3f2c034869 CommonHostInterface: Fix always using playlist title for running game 2021-05-24 21:24:22 +10:00
Connor McLaughlin
67f352339c CommonHostInterface: Add swap memory cards hotkey 2021-05-20 12:19:28 +10:00
Connor McLaughlin
f3cceca805 NoGUI: Implement mouse cursor hiding in fullscreen 2021-05-20 12:19:28 +10:00
Connor McLaughlin
01c869b704 CommonHostInterface: Implement controller autofire 2021-05-20 12:19:28 +10:00
Connor McLaughlin
f5bec87f79 CommonHostInterface: Add Toggle PGXP CPU Mode hotkey 2021-05-20 12:19:28 +10:00
Connor McLaughlin
1f206421e8 CommonHostInterface: Prevent crash with fullscreen UI enabled 2021-05-20 12:19:27 +10:00
Connor McLaughlin
a6d2324f0e ControllerInterface: Don't fire events when fullscreen UI active 2021-05-20 12:19:27 +10:00
Connor McLaughlin
08a815ad7b FullscreenUI: Make show status indicator setting local 2021-05-20 12:19:26 +10:00
Connor McLaughlin
172ba1fc32 CommonHostInterface: Fix controller masking for Start Disc 2021-05-20 12:19:26 +10:00
Connor McLaughlin
8dd36f4474 CommonHostInterface: Fix translatability of widescreen hack toggle message 2021-05-20 12:19:23 +10:00
ValadAmoleo
057c264d97 Widescreen Hotkey (#2080)
* Widescreen Hotkey

Added the ability to toggle Widescreen Hack and set the Aspect Ratio via a hotkey.

This is in response to Discussion #1912 (https://github.com/stenzek/duckstation/discussions/1912)

* Widescreen Hotkey Uses Settings

The Widescreen Hotkey now looks at the user's global or game settings when toggling.  This means:
When disabling the widescreen hack it uses a non-wide ratio as set by the user if available or auto if unavailable.
When enabling the widescreen hack it uses a wide ratio as set by the user if available or 16:9 if unavailable.

* Avoids loading the entire settings now.

Specifically loads the aspect ratio setting.
2021-05-20 12:19:23 +10:00
Connor McLaughlin
e226464a35 GameSettings: Add GPU renderer and 8MB RAM options 2021-05-08 03:45:14 +10:00
Connor McLaughlin
9ff1f153be CommonHostInterface: Remove some rarely used default hotkeys 2021-05-08 03:24:18 +10:00
Connor McLaughlin
44f29da40f CommonHostInterface: Fix OSD messages not clearing on shutdown 2021-05-01 13:37:29 +10:00
Connor McLaughlin
e8fece60cf CommonHostInterface: Fix crash booting exe/psf from file 2021-05-01 02:58:43 +10:00
Connor McLaughlin
256f272768 Support custom and match display aspect ratios 2021-04-30 02:53:03 +10:00
Connor McLaughlin
48bc152a63 Vulkan/SwapChain: Ensure returned height is at least 1x1 2021-04-30 02:53:03 +10:00
Connor McLaughlin
46d19eeb1f Android: Allow opening/getting files relative to downloads directory 2021-04-24 16:19:13 +10:00
Silent
712a11fb71
Hotkey Settings: Fix a missing space in Change Disc 2021-04-21 23:57:15 +02:00
Connor McLaughlin
704c160c35 CommonHostInterface: Add CPU overclock toggle hotkey 2021-04-20 16:06:34 +10:00
Connor McLaughlin
64bd840195
Update common_host_interface.cpp 2021-04-18 13:52:17 +10:00
soaresden
b0bd4b8cfe Adding Shortcut to Change Disc
Adding ShortCut to F8

simplifying

simplifying the code
2021-04-17 19:16:43 +02:00
Connor McLaughlin
03f3f0369c GameList: Reduce number of system calls when scanning 2021-04-17 21:52:26 +10:00
Connor McLaughlin
8ad0f78ef7 CommonHostInterface: Prefer serial from database, not image 2021-04-17 21:52:26 +10:00
Connor McLaughlin
ff14e8aede Add JSON game database to replace dat parsing 2021-04-17 17:04:23 +10:00
Connor McLaughlin
3c83ef4939 NoGUI: Fail startup if font atlas creation fails 2021-04-10 14:59:59 +10:00
Connor McLaughlin
deeb861918 CommonHostInterface: Fix rumble not applying to non-first controller 2021-04-08 11:33:59 +10:00
Connor McLaughlin
251043f11a OSD: Add controller input display overlay 2021-04-04 04:08:42 +10:00
Connor McLaughlin
924756860e HostDisplay: Support refresh rate queries on all platforms except Mac 2021-04-03 02:53:28 +10:00
Connor McLaughlin
872a9b95c7 Android: Remove quick menu hotkey
It has its own quick menu hotkey.
2021-04-01 02:29:59 +10:00
Connor McLaughlin
a0086851ce Qt: Fix double-clicking psexes/psfs in game list 2021-03-16 01:59:17 +10:00
Connor McLaughlin
ee171465ea CommonHostInterface: Move controller ID parsing to interface 2021-03-14 19:32:03 +10:00
Silent
6350bb0e36
Hook up plurality to OSD messages 2021-03-12 21:40:24 +01:00
Connor McLaughlin
7241876cc7 CommonHostInterface: Fix -settings on cmdline not applying 2021-03-12 03:02:57 +10:00
Connor McLaughlin
14a98c3c9e CommonHostInterface: Fix reset settings not saving on startup 2021-03-12 03:02:45 +10:00
Silent
3849ec449b
Revert "CommonHostInterface: Use key-release to open quick menu"
This reverts commit e0161c3bb2f5e5f4e9d7f9569ba86010899c08c5.
2021-03-08 20:16:38 +01:00
Connor McLaughlin
e0161c3bb2 CommonHostInterface: Use key-release to open quick menu
Fixes auto closing when it's bound to escape.
2021-03-08 11:45:48 +10:00
Connor McLaughlin
e2694b2570 Cheevos: Fix unlimited fast forward in hardcode mode 2021-03-08 11:44:02 +10:00
Connor McLaughlin
627f147a90 Support compiling for FreeBSD 2021-03-07 19:35:02 +10:00
Connor McLaughlin
6bbb1128b6 System: Hash executable for game code when system.cnf missing 2021-03-07 02:47:00 +10:00
Connor McLaughlin
359d1509be Qt: Add option for internal/window resolution screenshots 2021-03-06 02:22:28 +10:00
Connor McLaughlin
7dbc759619 Cheevos: Implement hardcore mode 2021-03-03 19:14:01 +10:00
Connor McLaughlin
c58227752d CommonHostInterface: Move save state on exit logic to base class 2021-03-03 01:14:05 +10:00
Connor McLaughlin
98be448140 Cheevos: Support logging in while disabled 2021-02-28 19:00:37 +10:00
Connor McLaughlin
a48fa4097b CommonHostInterface: Fix key inputs getting stuck with modifiers 2021-02-28 04:03:48 +10:00
Albert Liu
f9dc1a7e80 Core: Add Multitap support 2021-02-26 21:04:12 -08:00
Connor McLaughlin
b4e4e5891d Qt: Fix controller navigation for fullscreen UI 2021-02-27 01:17:44 +10:00
Connor McLaughlin
0ec2c87a0e Implement RetroAchivements 2021-02-27 00:44:53 +10:00
Connor McLaughlin
a7e4d55d02 Move game settings apply to CommonHostInterface 2021-02-24 01:22:04 +10:00
Connor McLaughlin
8318cdb3c1 Move ImGui setup to common, and enable fullscreen UI in Qt 2021-02-24 01:22:03 +10:00
Connor McLaughlin
1fc53ff622 CommonHostInterface: Move settings interface pointer to base class 2021-02-24 01:21:43 +10:00
Connor McLaughlin
7501e89b7a System: Add path/image to game change notification 2021-02-24 01:21:43 +10:00
Connor McLaughlin
77090865c1 OSD: Draw shadows on stats overlays (FPS/Resolution)
Makes it more visible on white backgrounds.
2021-02-24 01:21:43 +10:00
Connor McLaughlin
175abd4914 CommonHostInterface: Filter OSD messages in acquire for disabled case 2021-02-24 01:21:43 +10:00
Connor McLaughlin
75776f9b33
Merge pull request #1657 from CookiePLMonster/savestate-ui-legend
Save State UI: Add legend showing hotkeys
2021-02-24 01:21:24 +10:00
Silent
78f9136fb8
Save State UI: Cache legend strings 2021-02-22 19:34:51 +01:00
Connor McLaughlin
caae06dbf4
Merge pull request #1646 from piepacker/jake/osd_locking_opt
optimize locking mechanism for OSD messages (deadlock-proofing)
2021-02-22 12:21:12 +10:00
Connor McLaughlin
8c7aec2edf CommonHostInterface: Ensure game list is loaded before booting
Fixes a possible race/crash when starting with a filename in NoGUI.
2021-02-19 01:37:56 +10:00
Jake Stine
c3c4181074 optimize locking mechanism for OSD messages, use EnumerateOSDMessages more generally 2021-02-15 16:53:40 -08:00
Silent
82469ac425
Fix a missing comma in the PGXP message
+ translations fixed to account for that
2021-02-15 23:36:39 +01:00
Connor McLaughlin
d4143399eb OpenGLHostDisplay: Support fullscreen mode enumeration (DRM only) 2021-02-14 18:36:21 +10:00
Connor McLaughlin
c8efade20c CommonHostInterface: Don't draw OSD/FPS as windows
Slight performance improvement.
2021-02-12 01:01:30 +10:00
Connor McLaughlin
de688615ff Qt: Add Clear and Reset buttons to cheat manager 2021-02-12 01:01:30 +10:00
Connor McLaughlin
5f6fce9d98 CommonHostInterface: Remove Rewind hotkey on Android
It's not enablable in the UI anywhere.
2021-02-11 01:40:00 +10:00
Connor McLaughlin
701edb335a Various warning fixes 2021-02-06 19:19:55 +10:00
Connor McLaughlin
1e8752759d NoGUI: Set default settings if missing 2021-02-02 01:47:27 +10:00
Connor McLaughlin
91092847f8 CommonHostInterface: Restore display skip on exit/pause
Fixes CPU usage/controller moving too quickly in menus after fast
forwarding in big duck mode.
2021-02-01 02:08:52 +10:00
Connor McLaughlin
590513350c NoGUI: Start in fullscreen when option or command line flag is set 2021-02-01 01:10:32 +10:00
Connor McLaughlin
61e4e6f140 Add "Fullscreen UI" 2021-01-31 17:10:27 +10:00
Connor McLaughlin
3a7d9f1725 CommonHostInterface: Add controller nav helpers 2021-01-31 17:10:27 +10:00
Connor McLaughlin
2dbb3325ff CommonHostInterface: Tweak frame boundary for loading screen 2021-01-31 17:10:27 +10:00
Connor McLaughlin
e1bf362d13 CommonHostInterface: Extract ff/turbo hotkeys to functions 2021-01-31 17:10:27 +10:00
Connor McLaughlin
bed1abf0b8 CommonHostInterface: Add media path to save state info 2021-01-31 17:10:27 +10:00
Connor McLaughlin
556cd6d168 CommonHostInterface: Add enumerator for OSD messages 2021-01-31 17:10:27 +10:00
Connor McLaughlin
5aeabf028b Qt: Install crash handler on startup 2021-01-31 17:00:57 +10:00
Connor McLaughlin
4bb3fb48f9 System: Add a new throttler/pacer which can catch up on lost time
This can result in worse frame pacing, so if you have a decent machine
you'll probably want to turn on "display all frames" in display
settings.

But, it's sadly needed for Android.
2021-01-28 21:04:23 +10:00
Connor McLaughlin
6eeca57a06 CommonHostInterface: Wrap OSD messages 2021-01-25 01:15:46 +10:00
Connor McLaughlin
516d685dd0 System: Add memory-only save states and rewind 2021-01-25 01:15:45 +10:00
Connor McLaughlin
6c6fdeb15e HostDisplay: Make textures have levels/layers/samples attributes 2021-01-24 20:41:40 +10:00
Connor McLaughlin
cbee8fab66 CommonHostInterface: Throttle rumble updates to changes or every 100ms
These updates appear to be synchronous, and limit how fast we can fast
forward when controllers are connected via bluetooth.
2021-01-19 00:27:34 +10:00
Connor McLaughlin
37f9f118c4 Android: Add 'Open Pause Menu' hotkey 2021-01-13 19:26:24 +10:00
Connor McLaughlin
b5ffbfe826 Qt: Fix audio sliders not applying correctly 2021-01-13 02:37:04 +10:00
Connor McLaughlin
16ad54143b HostInterface: Don't sleep when syncing to host refresh 2021-01-12 02:19:23 +10:00
Connor McLaughlin
bc5fb850d4 AudioStream: Reset resampler state on emptying buffers 2021-01-11 03:58:14 +10:00
Connor McLaughlin
43d01776dc HostInterface: Add "Sync To Host Refresh Rate" option 2021-01-11 03:50:44 +10:00
Connor McLaughlin
54f5563321 Qt: Add turbo speed setting 2021-01-11 01:57:10 +10:00
Connor McLaughlin
a5f9aa11e1 Settings: Add audio resampling when running at non-standard speed 2021-01-11 01:14:32 +10:00
Connor McLaughlin
4fafb34251 CommonHostInterface: Move input map update to frontend
Fixes controller state getting reset when loading input profile.
2021-01-09 14:54:53 +10:00
Connor McLaughlin
b0398f5aa7 Qt: Add shutdown without saving menu option 2021-01-09 00:23:02 +10:00
Albert Liu
d860c14267 CommonHostInterface: Update rumble every frame regardless of change
Fixes SDL rumble cutting off early when a game sends the same motor
strength values every frame over a long duration.
2021-01-07 18:30:43 -08:00
johnnyruz
f7b0c0f493
Add cli parameter to override default settings file (#1375)
* Add cli parameter to specify alternate settings file

* fix issue with error message string parameter
2021-01-05 00:46:16 +10:00
Connor McLaughlin
e464a8c332 CommonHostInterface: Disable some hotkeys on Android 2020-12-30 19:42:14 +10:00
Connor McLaughlin
a3e4c61a0b CommonHostInterface: Add a method to get top-level window handle 2020-12-29 22:49:52 +10:00
Connor McLaughlin
41b803ed2b FrontendCommon: Add a hotkey to reload texture replacements 2020-12-26 00:47:03 +10:00
Connor McLaughlin
d320d5c830 GameSettings: Add game settings/hotkey for PGXP depth 2020-12-23 01:39:49 +10:00