183 Commits

Author SHA1 Message Date
LibretroAdmin
f1ff92c881 * menu_entries_append and menu_entries_append_enum are now combined into
one - if you set the last parameter to a valid 'rarch_setting_t' pointer
and enum_msg to MSG_UNKNOWN, you will get the previous menu_entries_append
behavior
* Renamed remaining function to menu_entries_append so that we have one
consistent way of adding menu entries instead of two
Reduces some code duplication significantly
2022-08-27 17:40:52 +02:00
LibretroAdmin
da13fb0f48 Don't include errno.h in files that don't justify its use 2022-08-25 05:19:30 +02:00
LibretroAdmin
6f738d4fbd Gradually get rid of strcpy_literal
Reasons:
1 - Just a macro for strcpy
1.2 - doesn't have a return type unlike strlcpy, can't be used
for string concatenation
1.3 - unsafe compared to strlcpy

Do either manual string assignment per character or strlcpy, no
inbetween by resorting to strcpy
2022-08-23 15:04:47 +02:00
libretroadmin
05622ebe85 Some trivial strlen usage simplifications where possible, removing
the need for strlen
2022-07-20 17:23:28 +02:00
sonninnos
b44ad6f890
(WIN32) Skip console attach when logging to file (#14163) 2022-07-09 19:22:59 +02:00
libretroadmin
7f3930b71b (platform_win32.c) Style nits 2022-07-08 22:23:12 +02:00
libretroadmin
d95e426b4e (Platform drivers) Cleanups - get rid of unnecessary logs
(VGA Font driver) Get rid of unused code by if 0ing it out
2022-07-08 22:10:53 +02:00
Sou Bunnbu
763fcd8267
unix, win32: Allow set the default libretro_directory via environment variable (#12040) 2022-02-04 17:40:57 +01:00
Nikos Chantziaras
430baf7c21
Add Linux GameMode support (#13339)
This can fix a lot of performance issues, like audio crackling and frame
time spikes. This requires the GameMode package to be installed. See:

https://github.com/FeralInteractive/gamemode

This commit adds a "Game Mode" bool option to the "Power
Management" and "Latency" settings sections, and it can be toggled
on/off without restarting RA.

The actual toggling of game mode happens in a new frontend platform
interface function. Perhaps this will become useful for other platforms
that provide some equivalent of Linux GameMode.

Since the GameMode ABI is fixed, and the API comes as a single,
header-only file with no actual deps, we simply bundle the header
(deps/feralgamemode/gamemode_client.h.) That way, all Linux builds will
have support for GameMode regardless of whether the GameMode development
package is installed or not.
2021-12-14 14:07:42 +01:00
twinaphex
7e6a56dafc Show Windows 11 version string 2021-10-05 04:37:44 +02:00
twinaphex
46a318db45 C89 buildfix 2021-06-20 23:02:55 +02:00
Alcaro
5f182fa564
Don't send speech input as command line argument (#12539)
* Don't send speech input as command line argument

* Fix a C++-only construct, and simplify some stuff
2021-06-20 14:39:14 +02:00
twinaphex
a129764f0d Change C++ comment to C 2021-06-17 05:45:59 +02:00
Alcaro
aeddcb54e0
Plug this so-called high-risk vuln (#12533)
https://www.reddit.com/r/RetroArch/comments/o0p1vy/retroarch_for_windows_versions_190_194_highrisk/

https://labs.bishopfox.com/advisories/retroarch-for-windows-version-1.9.0
2021-06-17 05:44:17 +02:00
twinaphex
d228e5f759 Small style nits 2021-05-17 15:58:04 +02:00
mudlord
3b8bd1a6e8 There. 2021-05-16 18:28:59 +10:00
mudlord
734401440d People are never happy. 2021-05-16 18:20:52 +10:00
mudlord
9fbf3b9732 Whoops 2021-05-16 17:58:43 +10:00
mudlord
67b180d63d Look into fixing CVE-2021-28927 2021-05-16 17:55:14 +10:00
twinaphex
4c51e31b9d (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
David Guillen Fandos
a442696b71 First attempt at adding proper brightness
Supports Switch and OGA
2020-11-26 19:22:05 +01:00
David Guillen Fandos
f5693f15e7 Make get_lakka_version available in all builds
This simplifies a bit the code, for some new lakka patches to come.
2020-11-23 18:44:24 +01:00
twinaphex
3ac75c043e Jdgleaver improvements 2020-11-20 03:55:55 +01:00
twinaphex
9ee1e33e09 Only attempt to call dir_check_defaults once per runtime session
when calling the frontend environment get callback - we want to
look at the 'default' directories, and then if they don't yet exist,
auto-create them so we can store files in them.
2020-11-19 07:10:22 +01:00
Tony Jansson
39b194d306 Clean vs reset configuration matching redux 2020-10-17 22:15:49 +03:00
Autechre
4fd92ec667
Revert "Clean vs reset configuration matching" 2020-10-17 19:02:28 +02:00
Tony Jansson
1825f52353 Clean vs reset configuration matching 2020-10-17 00:09:06 +03:00
twinaphex
b0c744c3d0 Turn some variables static that are not used outside the source
file
2020-09-21 00:52:32 +02:00
twinaphex
eefcd0e99f Use strcpy_literal in more places 2020-09-20 00:12:54 +02:00
twinaphex
ff8daa29a3 Add TODO/FIXME note 2020-08-26 19:02:48 +02:00
Hugo Hromic
3d356a46d5 (Drivers/Frontend/Win32) Report "free" memory instead of "used" as per driver contract. 2020-07-18 19:28:36 +01:00
twinaphex
6fcb97ee53 Some buildfixes 2020-06-30 08:37:41 +02:00
twinaphex
035d7dad12 Go through utf8 to utf16 functions 2020-06-27 01:10:45 +02:00
twinaphex
84781b7f3a Buildfix for targets that don't define HAVE_NVDA 2020-06-09 03:22:10 +02:00
Barry Rowe
35f1a4af8c Added nvda dynamic loading. 2020-06-07 19:46:22 -07:00
twinaphex
88f7515d1d Cleanups, comments, style nits 2020-06-04 14:41:28 +02:00
twinaphex
4a20709645 (Win32) Cleanup accessibility_speak_windows 2020-05-20 16:26:39 +02:00
twinaphex
2ab7da36f2 (Win32) Style nits 2020-05-12 17:16:36 +02:00
twinaphex
e74161bc6c Change name of nvdaController.h 2020-05-10 08:51:25 +02:00
Barry Rowe
8988e2d34b Added additional return to accessibility_speak_windows 2020-04-17 14:07:28 -07:00
twinaphex
b91c342ff4 Buildfix MSVC 2010 2020-04-17 16:40:39 +02:00
Barry Rowe
adb5c4c7dd Moved SAPI code into a define. 2020-04-16 11:57:39 -07:00
Barry Rowe
289be872f3 Added in auto-translate support, fixes for ozone and glui accessibility, and support for nvda and SAPI narration. 2020-04-13 17:46:08 -07:00
twinaphex
0611581b28 (Win32) Remove this - hopefully it sets Ozone to default 2020-03-12 03:52:56 +01:00
twinaphex
f0bdb61fd8 gfx_display and gfx_animation no longer tied to HAVE_MENU 2020-02-16 15:51:58 +01:00
twinaphex
2d274f1369 Move accessibility features to platform frontend driver 2020-02-14 00:17:55 +01:00
twinaphex
59d6ad6b05 (platform_win32.c) Cleanup 2020-02-13 21:53:31 +01:00
twinaphex
85d64602ff Move retroarch_get_launch_arguments() function call outside
of frontend driver - should be called by Salamander too which
has no conception of RetroArch launch arguments
2020-02-01 17:42:18 +01:00
twinaphex
c2852bdefe Get rid of useless return 2020-02-01 17:26:32 +01:00
jdgleaver
569014c5d2 (Filebrowser) Fix file selection issues when starting from (or navigating to) the top level directory 2019-12-31 12:34:03 +00:00