Commit Graph

64933 Commits

Author SHA1 Message Date
pstef b25cb6ea63 Use int32_t for x86_cpuid flags and handle MSVC types
Change the flags parameter to int32_t for explicit sizing. Add a check
and cast for MSVC __cpuid compatibility when int is 32-bit.

This silences a -Wincompatible-pointer-types warning where int32_t is
long int.
2025-04-10 21:10:45 +00:00
pstef 317c80a257 Silence a shorten-64-to-32 warning
The result of this multiplication will fit into a 32-bit int.
2025-04-10 21:10:45 +00:00
pstef 5710a7f6e5 Use size_t for new_selection as done everywhere else 2025-04-10 21:10:45 +00:00
pstef b5a4a0da79 Don't redefine _BSD_SOURCE
Imported from upstream.
2025-04-10 21:10:45 +00:00
pstef 620e440ab1 Silence an incompatible-pointer-types warning 2025-04-10 21:10:45 +00:00
pstef bcdb644bce Silence a discarded-qualifiers warning
waitUntilDeviceIsReady() should take a const char pointer as a
parameter, because it doesn't use it for writing. Since the function
prototype asks for a char pointer, cast it here.
2025-04-10 21:10:45 +00:00
pstef 4f9e86d24b Silence a -Wformat warning
Use %ju format specifier and cast the value to uintmax_t so that they
match on all platforms.
2025-04-10 21:10:45 +00:00
pstef 4d6c012009 Make space for three characters after a strlcpy call 2025-04-10 21:10:45 +00:00
pstef 187673fb2a Guard definition of an array just like its use is guarded 2025-04-10 21:10:45 +00:00
pstef bcc3ae448f Silence a -Waddress warning 2025-04-10 21:10:45 +00:00
pstef fbb093255a Check for string truncation to silence a warning 2025-04-10 21:10:44 +00:00
LibretroAdmin 7a17ed09ee
Merge pull request #17736 from MrHuu/ctr_core_load_unload 2025-04-10 03:36:07 -07:00
LibretroAdmin 82d8b9630a
Merge pull request #17750 from BinBashBanana/master 2025-04-10 03:35:45 -07:00
github-actions aec5d1addd Fetch translations from Crowdin 2025-04-10 00:16:10 +00:00
LibretroAdmin af50c2fccb
Merge pull request #17792 from pstef/wii-fixes
Wii fixes
2025-04-09 15:36:02 -07:00
pstef 6f95b974ba Bring in changes for GEKKO from upstream 2025-04-09 20:43:09 +00:00
pstef 7dce21c7d5 Copy quiet compilation mode from other Makefiles 2025-04-09 20:43:09 +00:00
pstef d65c17f6b8 Add missing includes
malloc.h for memalign() and unistd.h for usleep().
2025-04-09 20:43:09 +00:00
pstef e8d43b3d99 Add missing function declarations
They are absent even in upstream, so I decided against copying to the
local copy of libogc. And a couple of function prototypes doesn't seem
to warrant a new header file.
2025-04-09 20:43:09 +00:00
pstef b28a805f9c Remove remnants of a rejected idea
This was replaced simply by importing 3DS support from upstream.
2025-04-09 20:43:09 +00:00
LibretroAdmin 4bf8855fda
Merge pull request #17754 from zoltanvb/udev_to_linuxraw_fallback
Save fallback to linuxraw driver in case of first boot.
2025-04-09 13:26:34 -07:00
LibretroAdmin 17ac0529c2
Merge pull request #17762 from pstef/ctr-mbedtls
3DS: enable mbedTLS
2025-04-09 13:25:38 -07:00
LibretroAdmin 634a0a9654
Merge pull request #17753 from pstef/ctr-nogriffin
Fix non-griffin build for 3DS and make it the default
2025-04-09 13:25:30 -07:00
pstef b98a730413
Use fabsf and intended threshold for refresh rate check (#17791)
Discussed with sonninnos

Co-authored-by: pstef <3462925+pstef@users.noreply.github.com>
2025-04-09 23:22:00 +03:00
LibretroAdmin 036df1e9b1
Merge pull request #17790 from pstef/gx2-update-uniform-block
Fix variable name collision
2025-04-09 10:55:34 -07:00
LibretroAdmin a10dbbc1d0
Merge pull request #17787 from warmenhoven/warmenhoven/pr/ios9-build-fix
ios: ios9 build fix
2025-04-09 10:55:22 -07:00
pstef 3b3065f736 Fix variable name collision
const char *id overshadowed the function parameter int id.
2025-04-09 16:59:49 +00:00
Eric Warmenhoven 0533debeab ios: ios9 build fix 2025-04-09 08:50:43 -04:00
LibretroAdmin 3fb20b49c8
Merge pull request #17786 from zoltanvb/android-patch-fix 2025-04-09 03:08:12 -07:00
zoltanvb 4ceea9d6ca Follow patched file changes. 2025-04-09 06:35:37 +02:00
LibretroAdmin de775c501c
Merge pull request #17780 from pstef/cheat-manager 2025-04-08 18:46:51 -07:00
LibretroAdmin b5424e7448
Merge pull request #17783 from pstef/switch-performance-profiles 2025-04-08 18:44:20 -07:00
LibretroAdmin 973cb76c1c
Merge pull request #17784 from warmenhoven/warmenhoven/pr/ios-screen-orient 2025-04-08 18:44:07 -07:00
github-actions bbafb16ea4 Fetch translations from Crowdin 2025-04-09 00:16:07 +00:00
Eric Warmenhoven afc32f02dc ios: screen orientation lock through display server 2025-04-08 15:39:04 -04:00
Ryunam fbd05aa185
Fix very minor build warning (#17781) 2025-04-08 20:24:51 +03:00
pstef e523a6c0be Relocate Switch CPU profile definitions
Move SWITCH_CPU_* array definitions from header to platform_switch.c.
Use extern declarations in the header. Add NULL/0 terminators to the
arrays and update size calculation and loops to use the terminators
where the number of elements can't be calculated.

The motivation for this change is to remove code duplication and silence
warnings about unused arrays in translation units that only used a
subset of them.
2025-04-08 17:12:03 +00:00
pstef 59c71b8db4 Rewrite part of cheat_manager_load_cb_second_pass()
This is to silence a stringop warning that I believe to be a false
positive.  Nevertheless, this change reduces verbosity of the code
and introduces a couple of checks that weren't there previously.

Note that the base parameter of this strtoul call is changed from 0
to 10, because previously the while loop rejected characters other
than 0-9 so strtoul didn't have to. Now that the loop is gone, the
call has to reject characters that are not decimal digits to keep
the logic as it was.
2025-04-08 06:16:59 +00:00
github-actions dc67ff6418 Fetch translations from Crowdin 2025-04-08 00:15:05 +00:00
LibretroAdmin 7ff7e49f56
Merge pull request #17776 from zoltanvb/delete_core_options
Enable core options reset without starting a core.
2025-04-07 16:02:50 -07:00
LibretroAdmin aca2d3a544
Merge pull request #17777 from JesseTG/jtg/fix-ffmpeg-camera-condition 2025-04-07 02:33:31 -07:00
github-actions 55df20c845 Fetch translations from Crowdin 2025-04-07 00:16:31 +00:00
Jesse Talavera 334519167b Make the condition for using `camera_ffmpeg` consistent with the Makefile
- Should fix a link error
2025-04-06 19:05:34 -04:00
zoltanvb 000c5dcd76 Enable core options reset before starting a core.
Add "Reset core options" menu to two more places:
- Manage Cores, where it can delete the options for the selected core
- Configuration, where it can delete the options for the loaded core

Current reset function is updated to delete the core options file if
reset is wanted for a specific core, or core was loaded but not yet
started. Meant as a recovery method for possibly fatal core option
changes.
2025-04-06 21:53:01 +02:00
pstef 1f26793fde 3DS: enable mbedTLS 2025-04-06 18:48:10 +00:00
pstef 4354fc331c Fix non-griffin build for 3DS and make it the default
While here:
* remove input_overlay and task_overlay from linking blacklist
* move -Werror to CC invocation since C++ refuses to use it
* copy the quiet build mode from the main Makefile and make it the
  default
* temporarily define DEPRECATED for gpu_old.h to allow succesful build
* replace the call to command_event() with one to retroarch_main_quit()
  in a failure case
2025-04-06 18:48:07 +00:00
pstef 70aaa0a55c Fix non-griffin build for 3DS and make it the default
While here:
* remove input_overlay and task_overlay from linking blacklist
* move -Werror to CC invocation since C++ refuses to use it
* copy the quiet build mode from the main Makefile and make it the
  default
* temporarily define DEPRECATED for gpu_old.h to allow succesful build
* replace the call to command_event() with one to retroarch_main_quit()
  in a failure case
* add missing uncompr.o in Makefile.common for HAVE_BUILTINZLIB
2025-04-06 18:35:41 +00:00
LibretroAdmin c9998dfb32
Merge pull request #17752 from neil4/fix-overlay-mouse-lightgun 2025-04-06 01:53:55 -07:00
LibretroAdmin d15c7f5669
Merge pull request #17772 from pstef/gamecube-fixes 2025-04-06 01:36:19 -07:00
pstef af8765cb3b Fix DCFlushRange size calculation
by correcting the operator precedence
2025-04-06 01:04:06 +00:00