Commit Graph

65469 Commits

Author SHA1 Message Date
pstef 281dff8956 Silence a stringop-overflow warning
Guard against an unlikely case.
2025-03-25 16:55:39 +00:00
pstef 39495ced67 Silence a type-limits warning
Before this change, an 8-bit value was guaranteed to be lesser than the
size of this array (256). Instead of removing the check, I make it
meaningful by reducing the size of the array.
2025-03-25 16:55:39 +00:00
LibretroAdmin 962afed9dd
Merge pull request #17729 from pstef/limit-stack-usage 2025-03-25 04:40:14 -07:00
LibretroAdmin 873c467240
Merge pull request #17728 from pstef/signed-slot 2025-03-25 04:39:59 -07:00
github-actions 2406935a58 Fetch translations from Crowdin 2025-03-25 00:16:11 +00:00
github-actions f6076a4203 Fetch translations from Crowdin 2025-03-24 00:16:01 +00:00
pstef b995db627b Change the type of slot to int
Everywhere around this function it is an int, and within this function
there is also a check for sign, which makes me think unsigned was a
mistake.
2025-03-23 22:33:17 +00:00
pstef b0109b5829 Reduce stack usage in task_database_cue.c
Move disc_data from stack to heap.
2025-03-23 13:28:28 +00:00
pstef d5ba7902a4 Reduce stack usage in command.c
by using PATH_MAX_LENGTH to define the length of buffers that store
paths.
2025-03-23 09:31:08 +00:00
LibretroAdmin 99af19b6fe
Merge pull request #17722 from pstef/extensions-rewrite
File extension list generation rewrite
2025-03-23 02:30:47 -07:00
LibretroAdmin a1ce57f11f
Merge pull request #17723 from pstef/cmd-special
Push the compiler to reserve space for negative commands
2025-03-23 02:29:55 -07:00
LibretroAdmin 8ae97ac91e
Merge pull request #17724 from pstef/negative-accumulator
Allow frame_time_accumulator to go negative
2025-03-23 02:29:41 -07:00
github-actions b0507c0235 Fetch translations from Crowdin 2025-03-23 00:16:41 +00:00
pstef d14801d65b File extension list generation rewrite
Only limit extensions under the condition that the valid_extensions list
is not empty and the user wishes to limit the extensions. Otherwise
present files of all recognized extensions.

Part of this logic was implemented in 8f32801292 where the
point was to show supported files when core info file is missing. The
other part is the filter_by_current_core option.
2025-03-22 20:37:05 +00:00
LibretroAdmin e05dc9837b
Merge pull request #17721 from mittonk/lr-dice_apple
Package lr-dice for the Apple Store.
2025-03-22 07:21:44 -07:00
Ken Mitton 59d1b94b65 Package lr-dice for the Apple Store. 2025-03-21 11:53:50 -04:00
LibretroAdmin 5adaaf7851
Merge pull request #17717 from pstef/silence-warnings
Silence even more warnings
2025-03-21 08:41:40 -07:00
pstef 3be0cfe09c Allow frame_time_accumulator to go negative
to be able to catch the underflow and correct it.
2025-03-20 21:44:39 +00:00
pstef c3dfc7ec63 Push the compiler to reserve space for negative commands
Cheevos define a special macro defined to -1 and uses it as one of the
values for enum event_command. Make this value a part of the enum
definition so that this type is not optimized to be unsigned.
2025-03-20 21:32:56 +00:00
pstef a28b79215f Silence warning about type sign mismatch
Make this enum act like a type, use it and let the compiler choose and
handle signedness so that it all matches.
2025-03-20 18:24:55 +00:00
LibretroAdmin a58ac85dbc
Merge pull request #17704 from zoltanvb/android_bind_hold
Change bind hold default on Android
2025-03-20 11:05:49 -07:00
pstef 3fb7d190bf Silence warning about possible truncation
Also simplify this part; the point here is to start the copy later, but
otherwise the buffer size is the same, and it's still a string, so needs
no special handling.
2025-03-20 16:51:58 +00:00
pstef b85bcb8e48 Adjust types of index and maxindex to unsigned 2025-03-20 16:21:27 +00:00
pstef ce6cd0000c Don't free members of struct before init 2025-03-20 16:12:12 +00:00
pstef c978717b61 Silence a warning about no return value from non-void function
It seems the idea is to continue with installation, regardless of what
happened within deleteCia, so I just change its return type to void.
2025-03-20 06:26:44 +00:00
pstef 29639b98b3 Use the return value of rbtree_insert to silence a warning
The function prototype wants us to be warned when the result is not
used, but it's not clear why - I assume to check for failure.
2025-03-20 06:26:44 +00:00
LibretroAdmin ee881cfd67
Merge pull request #17706 from zoltanvb/plain_drm_fix
Enable compilation with plain_drm without other video drivers.
2025-03-19 18:04:52 -07:00
LibretroAdmin e6887be45c
Merge pull request #17710 from warmenhoven/warmenhoven/pr/apple-strlcpy
apple: fix strlcpy where src and dst are the same
2025-03-19 18:04:41 -07:00
LibretroAdmin f7b4af89e9
Merge pull request #17713 from pstef/silence-warnings
Silence warnings
2025-03-19 18:04:22 -07:00
github-actions 9fe9cb0939 Fetch translations from Crowdin 2025-03-20 00:15:04 +00:00
pstef 17a05ea939 Silence a dangling-pointer warning in Lzma 2025-03-19 20:19:39 +00:00
pstef f7285ff405 Silence warning: left shift of negative value
Import the change from upstream 16c83cd5fc4c18954c1b6e3de16c37ba
2025-03-19 20:09:15 +00:00
pstef a27d49b6f2 Silence GCC stringop-overflow
At optimization level -O3, GCC generates a warning about its own
optimizations, likely due to loop unrolling. Manually unroll the loop to
eliminate any ambiguity and prevent the warning.
2025-03-19 19:57:50 +00:00
pstef 3dca8dbf66 Silence -Walloc-size-larger-than=byte-size
One of the GCC14's optimization heuristic triggered here, suggesting
that the special value of len (size_t) could potentially be lesser than
the file's size (int64_t) but greater than "maximum object size" (set by
byte-size, PTRDIFF_MAX by default).

Use the same type as the file size it's compared to, and adjust the
sentinel value to spell INT64_MAX.
2025-03-19 17:35:15 +00:00
github-actions 5c093a7211 Fetch translations from Crowdin 2025-03-19 00:22:56 +00:00
Eric Warmenhoven 86fddd5326 apple: fix strlcpy where src and dst are the same 2025-03-17 15:34:45 -04:00
sonninnos 5365639a36
Win32: Fix pick core dialog (#17709) 2025-03-17 18:10:50 +02:00
zoltanvb 6ce2a12c4d Enable compilation with plain_drm without other video drivers. 2025-03-17 06:04:06 +01:00
github-actions 81b74decb3 Fetch translations from Crowdin 2025-03-17 00:16:11 +00:00
LibretroAdmin fbcd3a77fb
Merge pull request #17705 from pstef/silence-warnings-ctr
CTR: more compiler warnings cleanup
2025-03-16 09:29:39 -07:00
pstef bad0e58372 CTR: more compiler warnings cleanup
* unsigned vs signed comparison
* copy DEBUG_VAR from wiiu - this one prints pointer values in a
  portable way
* prove GCC14 that a date formatted as "00/00/0000" can fit into 11
  bytes
* explicitly mention previously unhandled enum constants
* Adding GFX widgets in b9849f78f7 and 1235a7435e orphaned
  ctr_set_osd_msg(). Reinstate it instead of removing, since it's
  effectively the same as calling font_driver_render_msg, but with
  checks.
* remove sp from clobber list in inline assembly
2025-03-16 14:00:35 +00:00
zoltanvb 485b055d48 Change bind hold default on Android
Due to touchscreen quick tap function, binding runs into problems
with the default setting that works well on other platforms. Using
a nonzero value avoids that problem.
2025-03-16 14:28:21 +01:00
LibretroAdmin bf3752ed61
Merge pull request #17702 from pstef/silence-warnings-ctr 2025-03-15 18:08:22 -07:00
LibretroAdmin 98b1601fcb
Merge pull request #17701 from zoltanvb/reserved_device_multiple_instance 2025-03-15 18:07:03 -07:00
LibretroAdmin 040cbe00d6
Merge pull request #17698 from pstef/Makefile.ctr-debug 2025-03-15 18:06:49 -07:00
LibretroAdmin c2ffa044f9
Merge pull request #17700 from pstef/realloc-ext-list 2025-03-15 18:06:35 -07:00
pstef fc9f0b04be CTR: Silence a couple of GCC 14 warnings 2025-03-16 01:01:04 +00:00
github-actions b9de670da0 Fetch translations from Crowdin 2025-03-16 00:15:47 +00:00
zoltanvb ba5489128f Fix reserved device selection when multiple controller instances are present
If multiple instances of the same controller type are present, they will be
postfixed by (#2), (#3) etc. This made menu selection ineffective.
2025-03-15 18:40:33 +01:00
pstef 62ccd05e36 Try to avoid overflowing the stack
PATH_MAX_LENGTH is pretty short on CTR and not really adequate here
since this buffer is not storing a path.

Allocate and possibly reallocate from heap instead of using the
stack here.
2025-03-15 16:43:38 +00:00