libretroadmin
2809421d4e
Revert "static variables are initialized to '0' automatically as per C rules"
...
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
This reverts commit 2a0984b6e4
.
2024-11-19 03:03:13 +01:00
libretroadmin
82e4504968
Revert "(pt. 2) static variables are initialized to '0' automatically as per C rules"
...
This reverts commit 47410df7a3
.
2024-11-19 03:03:05 +01:00
libretroadmin
47410df7a3
(pt. 2) static variables are initialized to '0' automatically as per C rules
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-11-18 15:59:46 +01:00
libretroadmin
2a0984b6e4
static variables are initialized to '0' automatically as per C rules
2024-11-18 15:33:34 +01:00
Eric Warmenhoven
876cc19d49
griffin: include all audio filters ( #17177 )
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-11-09 08:44:39 -08:00
LibretroAdmin
e45bc853ec
Revert "Pointer confinement support (opt-in) ( #17169 )" ( #17173 )
...
This reverts commit 90ee413a81
.
2024-11-07 07:31:47 -08:00
zoltanvb
90ee413a81
Pointer confinement support (opt-in) ( #17169 )
...
New environment set call to enable a bit more sensible handling of
absolute pointing devices (pointer and lightgun). With the
confinement enabled, pointing devices will not return neither
-0x8000 nor (0,0), which was anyway dependent on the input driver,
instead they will stay at the extreme edge.
2024-11-06 15:19:08 -08:00
sonninnos
8790178ae2
Win32: Filebrowser 'Show Hidden Files' corrections ( #17140 )
2024-10-30 17:56:47 -07:00
zoltanvb
66eead3afa
Move cacert.h out of deps/, since it does not belong there. ( #17122 )
2024-10-26 06:44:45 -07:00
pstef
790deebe42
Silence GCC 14 warning [-Warray-bounds=] ( #17110 )
...
* Silence GCC 14 warning [-Warray-bounds=]
GCC reports a couple of warnings like this example:
libretro-common/cdrom/cdrom.c:395:14: warning: array subscript 6 is outside array bounds of 'unsigned char[6]' [-Warray-bounds=]
395 | cmd[6] = cmd[3];
| ~~~~~~~^~~~~~~~
libretro-common/cdrom/cdrom.c: In function 'cdrom_unlock':
libretro-common/cdrom/cdrom.c:1268:18: note: at offset 6 into object 'cdb' of size 6
1268 | unsigned char cdb[] = {0x1E, 0, 0, 0, 0x2, 0};
The static analysis heuristic doesn't consider the fact that the writes to cmd[6] and later only happen under the condition that `if (cmd[0] == 0xBE || cmd[0] == 0xB9)` and that in all of those cases the array passed is wide enough. So this is a false positive.
Nevertheless, there seems to be an easy way to silence the warning without disabling it: just require all arrays passed to be at least 9 bytes long and explicitly set the size of those arrays that have been shorter to 9.
* Work around the requirement of C89
I used a C99 construct, but this is easy to work around
with a run-time check.
* Restore the check for non-null cmd
It was obsoleted in a previous version, but is needed back now.
---------
Co-authored-by: pstef <3462925+pstef@users.noreply.github.com>
2024-10-21 14:45:23 -07:00
Eric Warmenhoven
7ae8597765
macOS: Create App Store build ( #17074 )
2024-10-04 12:46:51 -07:00
Viačasłaŭ
3019b926c2
Fix typos ( #17068 )
2024-10-01 17:36:33 -07:00
Eric Warmenhoven
b557bc9523
Fixing compiler warnings ( #17001 )
2024-09-14 13:11:20 -07:00
zoltanvb
39c48f7310
Support RETRO_ENVIRONMENT_GET_FILE_BROWSER_START_DIRECTORY ( #17002 )
2024-09-14 12:15:27 -07:00
libretroadmin
23bd9686e5
Silence unused variable warnings
2024-09-11 15:48:43 +02:00
Vladimir Serbinenko
dd489312ea
Enable chd hashing on libnx ( #14034 )
2024-09-11 06:29:59 -07:00
Emanuel Haupt
7a0d568f04
Incorporate FreeBSD port patches ( #16221 )
...
This commit imports a series of patches from the FreeBSD port of RetroArch to
improve build compatibility and address specific issues encountered in the
FreeBSD environment. These patches, sourced from the FreeBSD Ports collection
(https://cgit.freebsd.org/ports/tree/games/retroarch/files ), have been adapted
and tested to ensure they integrate seamlessly with the current build process.
2024-09-10 18:11:40 -07:00
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
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
...
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
libretroadmin
f4ed638347
Rewrite libretro-common task_queue, use flags
2024-09-10 02:42:07 +02:00
libretroadmin
7f87a46744
More downsizing of variables
2024-09-09 16:18:32 +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
9efb498bde
(config_file) Use flags
2024-09-08 18:12:12 +02: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
libretroadmin
22f4441cdd
C89 buildfix
2024-09-05 17:44:05 +02:00
libretroadmin
0f7a665439
Resync libretro-common
2024-09-05 11:49:08 +02:00
libretroadmin
4b86886d30
(libretro-common) stdstring - get rid of these pointless functions
2024-09-05 11:44:57 +02:00
Jesse Talavera
518d719f38
Fix a build error on iOS ( #16903 )
...
- Includes certain newly-required headers
- Makes the use of the `IOS` macro consistent with other platform checks
2024-08-21 12:57:02 -07:00
libretroadmin
afc9cb509a
CXX_BUILDFIX buildfixes
2024-07-20 19:42:45 +02:00
libretroadmin
60e0dd839a
iC comments
2024-07-20 17:54:44 +02:00
Keith Bowes
4683e83d9a
Add support for mbedtls v3 ( #16763 )
...
v2 is not going to receive security fixes after 2024
Fixes #16672
2024-07-18 06:25:29 -07:00
libretroadmin
7c6054573e
(rhmap) use custom strdup
2024-07-06 00:00:29 +02:00
libretroadmin
57c790646f
Buildfix
2024-06-29 03:48:50 +02:00
libretroadmin
47ec7c0782
Try to avoid strdup to avoid portability issues
2024-06-29 03:46:06 +02:00
libretroadmin
40c889b562
Add header include for rhmap.h
2024-06-29 03:25:33 +02:00
Ash Logan
27f337d5a0
(libretro-common) Use inline assembly for PowerPC libco
...
This puts the code into the binary's .text section, which is needed
for platforms without the ability to map it as RWX (WiiU). Using
GNU/AT&T syntax for the assembly here.
2024-06-25 08:16:52 -05:00
Joseph C. Osborn
e51a316cfd
tidy up intfstream_truncate ifdefs.
2024-06-18 13:13:59 -05:00
Joseph C. Osborn
42f066a842
add intfstream_truncate for file streams
...
Will return 0 for non-file streams. I didn't want to mess around with
memory_stream (which could in theory have a truncate impl that sets
size) because there were globals and stuff and I got nervous (also
truncate might *grow* a file if the new length is longer than the old
one and then I'd have to think about realloc, etc).
2024-06-18 13:13:59 -05:00
libretroadmin
c4685e8c31
Cut down on strlcats
2024-06-16 19:15:07 +02:00
libretroadmin
e2e6602ac2
Buildfix
2024-06-16 15:39:35 +02:00
libretroadmin
3cdadbef8c
(dylib.c) Avoid strlcat usage, camelcase variable name removal
...
and C comments
2024-06-16 15:10:11 +02:00
libretroadmin
c741c9d9a9
Remove unused variables
2024-06-15 16:44:41 +02:00
libretroadmin
f574a3a68e
(archive_file) Don't know why this won't compile for MSVC -
...
<compat/posix_string.h> gets included which should redefine strtok_r
for MSVC usage but it just doesn't work and fails at linking stage, will have to figure this out
later
2024-06-15 16:34:19 +02:00
libretroadmin
c02d8b8475
Slight change in header include
2024-06-15 16:28:30 +02:00
libretroadmin
0f5cdaf2f6
Include <compat/posix_string.h> for strtok_r MSVC compatibility
2024-06-15 16:11:26 +02:00
libretroadmin
29c89a46f1
file_archive_get_file_list_cb - remove string_list usage
2024-06-15 15:35:26 +02:00
libretroadmin
827e631903
(libretro-common) Some functions now return len
2024-06-15 12:47:51 +02:00
libretroadmin
c022e4e624
Cut down on snprintf
2024-06-15 00:56:51 +02:00
Eric Warmenhoven
e9682cbbd6
Fix #16626 fix crash parsing truncated 7z file
2024-06-05 13:06:27 -05:00