Commit Graph

64177 Commits

Author SHA1 Message Date
Jay Paul
e61b3ae2ba
Sort Remaps by Connected Controller (#16747)
* sort remaps by connected controller if option is enabled

* ensure dir name is valid based on input device name

* Fix comments

* Fix forbidden mixed declarations and code

* fixing build errors

* fix additional build warning/error

* Resolved code review change requests

* Changed strlcat to strlcpy as per recommendation

* Retrigger checks

* Use proper path separator.

* Ensure default value is toggled off.

* Ensure that gamepad device name is valid.
2024-09-10 17:39:35 -07:00
zoltanvb
8c2d2f5d74
Make individual thumbnail downloads obey filename match setting. (#16826) 2024-09-10 17:36:25 -07:00
Jason Breitweiser
d4e5f7ac4b
Crash when pressing B button on playlists #16951 (#16971)
* Added check for null thumbnail path.  Applies to 16951

* Moved null check up the code to cover multiple accesses to the thumbnail path.

* Checked for null values before trying to get logo icons for playlists

* Rolled back the thumbnail_path_gfx changes and instead added
deinitialization of the icon thumbnails when a list was not a playlist.
2024-09-10 16:15:38 -07:00
libretroadmin
364d977027 (menU_driver) small cleanup 2024-09-11 01:13:50 +02:00
Eric Warmenhoven
e38b9ff734
Fix scanning .chd files (#16986) 2024-09-10 15:47:37 -07:00
libretroadmin
4d88381481 Reduce some variables 2024-09-11 00:27:37 +02:00
libretroadmin
d2eed0dabe Remove unused referenced variables 2024-09-10 23:39:14 +02:00
libretroadmin
5a539a31bd Transfer structs/enums over to task_screenshot.c 2024-09-10 23:17:19 +02:00
Eric Warmenhoven
4d20d08080
fix to avoid reacquiring a mutex reentrantly (#16985)
Some checks failed
CI Windows (MSVC) / msvc (Debug, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Debug, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, UWP) (push) Waiting to run
CI Windows (MSVC) / msvc (ReleaseAngle, x64, UWP) (push) Waiting to run
CI macOS / build (push) Waiting to run
CI 3DS / build (push) Failing after 0s
CI Android / build (push) Failing after 0s
CI DOS/DJGPP / build (push) Failing after 0s
CI Emscripten / build (push) Failing after 0s
CI GameCube / build (push) Failing after 0s
CI Linux (i686) / build (push) Failing after 0s
CI Miyoo ARM32 / build (push) Failing after 0s
CI PS2 / build (push) Failing after 0s
CI PS4/ORBIS / build (push) Failing after 0s
CI PSP / build (push) Failing after 0s
CI PSVita / build (push) Failing after 0s
CI RS90 Odbeta MIPS32 / build (push) Failing after 0s
CI RetroFW MIPS32 / build (push) Failing after 0s
CI Switch/libnx / build (push) Failing after 0s
CI Wii / build (push) Failing after 0s
CI WiiU / build (push) Failing after 0s
CI Windows i686 (MXE) / build (push) Failing after 0s
CI Windows x64 (MXE) / build (push) Failing after 0s
RetroArch CI / linux-c89 (push) Failing after 0s
CI webOS / build (push) Failing after 0s
Crowdin Daily Workflow / sync (push) Failing after 0s
2024-09-10 12:03:04 -07:00
libretroadmin
8ba57c77e0 (winraw_input) Simplify code 2024-09-10 18:18:26 +02:00
libretroadmin
5892551f75 Avoid strlen calls in video_shader_replace_wildcards 2024-09-10 16:33:08 +02:00
libretroadmin
29f011acef * Inline find_last_slash
* explore_load_icons - fill_pathname_slash is equivalent to usage
of strlen here, no need to call strlen
2024-09-10 16:02:06 +02:00
libretroadmin
046c2375e7 Downsize big char arrays in shader structs - a lot of these get
Some checks failed
CI Windows (MSVC) / msvc (Debug, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Debug, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, UWP) (push) Waiting to run
CI Windows (MSVC) / msvc (ReleaseAngle, x64, UWP) (push) Waiting to run
CI macOS / build (push) Waiting to run
CI 3DS / build (push) Failing after 0s
CI Android / build (push) Failing after 0s
CI DOS/DJGPP / build (push) Failing after 0s
CI Emscripten / build (push) Failing after 0s
CI GameCube / build (push) Failing after 0s
CI Linux (i686) / build (push) Failing after 0s
CI Miyoo ARM32 / build (push) Failing after 0s
CI PS2 / build (push) Failing after 0s
CI PS4/ORBIS / build (push) Failing after 0s
CI PSP / build (push) Failing after 0s
CI PSVita / build (push) Failing after 0s
CI RS90 Odbeta MIPS32 / build (push) Failing after 0s
CI RetroFW MIPS32 / build (push) Failing after 0s
CI Switch/libnx / build (push) Failing after 0s
CI Wii / build (push) Failing after 0s
CI WiiU / build (push) Failing after 0s
CI Windows i686 (MXE) / build (push) Failing after 0s
CI Windows x64 (MXE) / build (push) Failing after 0s
RetroArch CI / linux-c89 (push) Failing after 0s
CI webOS / build (push) Failing after 0s
allocated on the stack so this would cost a lot of memory
2024-09-10 07:03:50 +02:00
Eric Warmenhoven
cfbfd01f38
iOS: Last bits of iOS 12 support, including loading an older MoltenVK library (#16982) 2024-09-09 21:27:29 -07:00
libretroadmin
c961e79a0c Variable simplification 2024-09-10 06:25:00 +02:00
libretroadmin
3c23b2d04a (WASAPI) wasapi_write now one function, no more leaf function calls
Some checks failed
CI Windows (MSVC) / msvc (Debug, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Debug, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, UWP) (push) Waiting to run
CI Windows (MSVC) / msvc (ReleaseAngle, x64, UWP) (push) Waiting to run
CI macOS / build (push) Waiting to run
CI 3DS / build (push) Failing after 1s
CI Android / build (push) Failing after 20s
CI DOS/DJGPP / build (push) Failing after 0s
CI Emscripten / build (push) Failing after 0s
CI GameCube / build (push) Failing after 0s
CI Linux (i686) / build (push) Failing after 0s
CI Miyoo ARM32 / build (push) Failing after 0s
CI PS2 / build (push) Failing after 0s
CI PS4/ORBIS / build (push) Failing after 0s
CI PSP / build (push) Failing after 0s
CI PSVita / build (push) Failing after 0s
CI RS90 Odbeta MIPS32 / build (push) Failing after 0s
CI RetroFW MIPS32 / build (push) Failing after 0s
CI Switch/libnx / build (push) Failing after 0s
CI Wii / build (push) Failing after 0s
CI WiiU / build (push) Failing after 0s
CI Windows i686 (MXE) / build (push) Failing after 0s
CI Windows x64 (MXE) / build (push) Failing after 0s
RetroArch CI / linux-c89 (push) Failing after 0s
CI webOS / build (push) Failing after 0s
2024-09-10 04:45:28 +02:00
libretroadmin
59ddb6731f Refactor WASAPI driver
- Use flags instead of bools
- Rewrite wasapi_write function
2024-09-10 04:12:10 +02:00
libretroadmin
f2ad4071bc Buildfix for Android 2024-09-10 03:00:37 +02:00
libretroadmin
84508b2168 RARCH_LOG_V - lower char buffer from 2048 to 1024 2024-09-10 02:48:24 +02:00
libretroadmin
f4ed638347 Rewrite libretro-common task_queue, use flags 2024-09-10 02:42:07 +02:00
libretroadmin
36bcbefc96 Cleanup some char variables - title variables will always be 128
in size
2024-09-10 00:15:23 +02:00
libretroadmin
285e38bd87 (video_shader_parse) Cleanups 2024-09-09 22:47:33 +02:00
libretroadmin
8db629ebae (Menu) Cleanups pt. 2 2024-09-09 22:18:23 +02:00
libretroadmin
6020877043 Cleanups 2024-09-09 22:01:37 +02:00
libretroadmin
13cf0fc79c Add more TODO/FIXME notes
Some checks failed
CI Windows (MSVC) / msvc (Debug, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Debug, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, UWP) (push) Waiting to run
CI Windows (MSVC) / msvc (ReleaseAngle, x64, UWP) (push) Waiting to run
CI macOS / build (push) Waiting to run
CI 3DS / build (push) Failing after 10m42s
CI Android / build (push) Failing after 39s
CI DOS/DJGPP / build (push) Failing after 11s
CI Emscripten / build (push) Failing after 43s
CI GameCube / build (push) Failing after 0s
CI Linux (i686) / build (push) Failing after 32s
CI Miyoo ARM32 / build (push) Failing after 37s
CI PS2 / build (push) Failing after 15s
CI PS4/ORBIS / build (push) Failing after 22s
CI PSP / build (push) Failing after 16s
CI PSVita / build (push) Failing after 21s
CI RS90 Odbeta MIPS32 / build (push) Failing after 42s
CI RetroFW MIPS32 / build (push) Failing after 0s
CI Switch/libnx / build (push) Failing after 24s
CI Wii / build (push) Failing after 1s
CI WiiU / build (push) Failing after 8s
CI Windows i686 (MXE) / build (push) Failing after 57s
CI Windows x64 (MXE) / build (push) Failing after 55s
RetroArch CI / linux-c89 (push) Failing after 17s
CI webOS / build (push) Failing after 30s
Crowdin Daily Workflow / sync (push) Failing after 1m0s
2024-09-09 20:19:29 +02:00
libretroadmin
55f737195e (Winraw) Use flags 2024-09-09 19:06:43 +02:00
libretroadmin
0ab10f73c2 Start reducing size of video_shader_pass struct to reduce
massive size of video_shader struct
2024-09-09 18:28:38 +02:00
libretroadmin
c79b02b1c8 Dehardcode some more variable sizes 2024-09-09 16:42:02 +02:00
libretroadmin
7f87a46744 More downsizing of variables 2024-09-09 16:18:32 +02:00
libretroadmin
27ffd4f00b Buildfix 2024-09-09 16:02:15 +02:00
libretroadmin
73e5d955c3 Downgrade some more variables to NAME_MAX_LENGTH 2024-09-09 16:01:29 +02:00
libretroadmin
998edca29d Update/rearrange settings struct and also add FIXME notes 2024-09-09 15:38:33 +02:00
libretroadmin
fca38419f5 Add more TODO/FIXME notes 2024-09-09 15:34:32 +02:00
libretroadmin
0c91d77ae3 C89_BUILD buildfix 2024-09-09 15:27:52 +02:00
libretroadmin
e675ea7e29 Variable cleanups - add TODO/FIXME notes for spurious variable sizes 2024-09-09 15:22:08 +02:00
libretroadmin
2be58b470d BUildfix
Some checks are pending
CI 3DS / build (push) Waiting to run
CI Android / build (push) Waiting to run
CI DOS/DJGPP / build (push) Waiting to run
CI Emscripten / build (push) Waiting to run
CI GameCube / build (push) Waiting to run
CI Linux (i686) / build (push) Waiting to run
CI Windows (MSVC) / msvc (Debug, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Debug, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2019) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, 2022) (push) Waiting to run
CI Windows (MSVC) / msvc (Release, x64, UWP) (push) Waiting to run
CI Windows (MSVC) / msvc (ReleaseAngle, x64, UWP) (push) Waiting to run
CI macOS / build (push) Waiting to run
CI Miyoo ARM32 / build (push) Waiting to run
CI PS2 / build (push) Waiting to run
CI PS4/ORBIS / build (push) Waiting to run
CI PSP / build (push) Waiting to run
CI PSVita / build (push) Waiting to run
CI RS90 Odbeta MIPS32 / build (push) Waiting to run
CI RetroFW MIPS32 / build (push) Waiting to run
CI Switch/libnx / build (push) Waiting to run
CI Wii / build (push) Waiting to run
CI WiiU / build (push) Waiting to run
CI Windows i686 (MXE) / build (push) Waiting to run
CI Windows x64 (MXE) / build (push) Waiting to run
RetroArch CI / linux-c89 (push) Waiting to run
CI webOS / build (push) Waiting to run
2024-09-09 05:51:20 +02:00
libretroadmin
b8391e233f * PATH_MAX_LENGTH redefined from 4096 to 2048
* Massive reduction in heap space allocation, going from settings struct
264kb to 119Kb
* Use NAME_MAX_LENGTH for base paths/names, etc
* Use DIR_MAX_LENGTH for directory sizes
2024-09-09 05:47:32 +02:00
libretroadmin
01a9745f5b Settings struct now has a flags variable 2024-09-08 22:49:26 +02:00
libretroadmin
9efb498bde (config_file) Use flags 2024-09-08 18:12:12 +02:00
libretroadmin
f4e2fbb660 (Menu/MaterialUI/RGUI) Integrate more bool flags into flags 2024-09-08 17:53:39 +02:00
Eric Warmenhoven
0d6b249dbc
iOS 9 build fix (#16980) 2024-09-08 07:59:19 -07:00
libretroadmin
d60d320e76 Simplified parameter parsing to have all shader formats use the same slang method
(when HAVE_SLANG and HAVE_SPIRV_CROSS are defined) - backport of HyperSpaceMadness' PR
2024-09-08 15:25:40 +02:00
Eric Warmenhoven
42f66adbf2
iOS/tvOS: minor compiler flag optimization/cleanup (#16974) 2024-09-08 03:10:38 -07:00
Eric Warmenhoven
d228c9d469
iOS: More fixes to enable running on iOS 12 (#16978) 2024-09-08 03:10:30 -07:00
zoltanvb
8562c16b4c
Fine-tune device reservation. (#16979)
- add reserved device check against device display name as well
- selected device name matching in menu with or without vid:pid
- cosmetical change in test input file
2024-09-08 03:10:21 -07:00
github-actions
5fcec5d342 Fetch translations from Crowdin 2024-09-08 00:14:53 +00:00
Jesse Talavera
c0715fc420
Fix incorrect documentation for retro_audio_sample_batch_t (#16965)
retro_audio_sample_batch_t returns the number of processed frames, *not* samples.

- See `audio_driver_sample_batch` in `audio_driver.h`
2024-09-07 07:58:52 -07:00
github-actions
c87a88f456 Fetch translations from Crowdin 2024-09-07 00:28:28 +00:00
Francisco Javier Trujillo Mata
fe4a15b15c
Fix pthread support (#16970)
* enabled pthread usage

* unload modules before loading back
2024-09-06 15:45:15 -07:00
Eric Warmenhoven
e34b57fd97
iOS: Add @available tags to enable compilation back to iOS 12 (#16969) 2024-09-06 14:57:36 -07:00