Commit Graph

65560 Commits

Author SHA1 Message Date
Joseph C. Osborn 6227156e73 Add new replay token type CHECKPOINT2
This can optionally encode and compress checkpoints.  For now, only
raw encoding is supported, but e.g. delta encoding, block-based
encoding, or deduplicated encoding could be supported in the future.

Three compression schemes are included (selected automatically based
on compilation flags): ZSTD, ZLIB, or NONE.

All three schemes are supported for decompression if available.

For compression, ZSTD is preferred over ZLIB is preferred over NONE.
2025-07-14 14:32:53 -07:00
Joseph C. Osborn 46be205b75 add zstd compression library (single-threaded only) 2025-07-14 14:32:48 -07:00
libretroadmin f73d9dead3 - Cut down on strrchr calls inside loops
- Replace string_replace_all_chars calls
2025-07-14 22:31:36 +02:00
LibretroAdmin 6fa73c3431
Merge pull request #18090 from JoeOsborn/fix-replay-rewind
fix three bugs with replays and rewinding
2025-07-14 19:31:53 +02:00
LibretroAdmin ad5a98f2d3
Merge pull request #18091 from JoeOsborn/emscripten-makefile-includedirs
Emscripten makefile should use INCLUDE_DIRS from Makefile.common
2025-07-14 19:31:30 +02:00
libretroadmin 4099b49483 (menu_cbs_title) SANITIZE_TO_STRING rewrite:
* Turn macro into function
* Don't use strchr (O(n^2), switch to single pass loop instead
2025-07-14 19:13:11 +02:00
libretroadmin 6e5e63b6d4 Reduce some strrchr double calls 2025-07-14 19:05:11 +02:00
libretroadmin 1cc0f3273f (file_path) Optimize find_last_slash:
* Do one loop iteration inside the function instead of two
strrchr(s) for finding the forward and backwards slash
2025-07-14 18:44:49 +02:00
libretroadmin 9b6641c951 (file_path) fill_pathname_join_special - small tweak 2025-07-14 17:37:33 +02:00
libretroadmin 2d632fed54 file_path changes:
* improve fill_pathname_slash, no longer call strlcat
  - strlcat call would have been done in strlcat regardless
2025-07-14 17:26:15 +02:00
Joseph C. Osborn 246caaec3f Emscripten makefile should use INCLUDE_DIRS from Makefile.common
With this change, HAVE_ZSTD or HAVE_CHD can successfully be set for
emscripten builds.

This mirrors how other Makefiles use Makefile.common.
2025-07-14 08:19:57 -07:00
Joseph C. Osborn 27f141a7a5 fix some bugs with replays and rewinding
- rewinding past the start clobbers part of the header
- during recording & rewind, should not push input events
- during recording or playback, getting to the end of the rewind
  buffer should not halt the movie
2025-07-14 08:09:25 -07:00
libretroadmin 3eb8589550 (file_list) Optimizations:
* file_list_insert - use memmove instead of malloc to add new
file item on top of the existing one
2025-07-14 17:04:44 +02:00
libretroadmin 9cfcc5ec8e Revert video_coord_array code 2025-07-14 06:00:44 +02:00
libretroadmin 215219dc51 Change libretro-common code back 2025-07-14 05:50:17 +02:00
libretroadmin 9c82213d19 Remove some else statements 2025-07-14 04:43:36 +02:00
libretroadmin b7db9a65af video_viewport_get_scaled_aspect2 - cleanup 2025-07-14 03:55:07 +02:00
libretroadmin 6010a53fec gfx_animation_ticker_loop - small refactor 2025-07-14 03:26:00 +02:00
libretroadmin 435849d00f (libetro-common) scaler simplifications 2025-07-14 03:00:08 +02:00
github-actions de298b18c4 Fetch translations from Crowdin 2025-07-14 00:18:31 +00:00
libretroadmin 3226361c1d Prevent some nbio windows mmap memory leaks when failing 2025-07-14 01:19:39 +02:00
libretroadmin 86b55c14ec (file_list)
Performance improvements:
* Various optimizations
* Reduced memory allocations - file_list_insert would call malloc
for every single item that would need to be shifted downwards. instead
it does a memmove call now
2025-07-14 00:17:12 +02:00
libretroadmin 2f9b0181dd video coord array improvements:
* single memory block allocation vs. several
* reduced memcpy calls
* simplified pointer arithmetic
* simplified code
2025-07-13 23:13:42 +02:00
libretroadmin f6da101330 (resampler) indentation cleanups 2025-07-13 18:40:11 +02:00
Eric Warmenhoven 43031d2154
apple: avfoundation camera driver fixes
better permissions check, delay starting camera until _start
2025-07-13 08:40:29 -04:00
libretroadmin de76511ee7 (file_path) Cleanups / refactors 2025-07-13 08:02:28 +02:00
LibretroAdmin 228f4b346d
Merge pull request #18087 from neil4/overlay-fix-speed-limit
Fix input_overlay_track_touch_inputs
2025-07-13 06:24:53 +02:00
nfore dabf543cde Fix input_overlay_track_touch_inputs
- Fixes bug introduced in 31014e99c0. Unmatched pointers were not considered outliers
2025-07-12 22:59:16 -05:00
libretroadmin 55bada6bda Rewrite strlcpy - add early return for len == 0 2025-07-13 04:59:24 +02:00
libretroadmin 311a64a413 (audio_conversion) small cleanups 2025-07-13 03:21:13 +02:00
github-actions e683017f45 Fetch translations from Crowdin 2025-07-13 00:19:28 +00:00
libretroadmin 4973e47cac (Resampler) Style nits/cleanups 2025-07-13 01:59:36 +02:00
libretroadmin 04af1a1e98 Put header includes inside ifdef guard 2025-07-12 22:08:09 +02:00
LibretroAdmin 72ff77347f
Merge pull request #18086 from neil4/overlay-touch-tracking-speed-limit 2025-07-12 21:27:47 +02:00
nfore 31014e99c0 Overlays: Put a speed limit on touch pointer tracking
A pointer is considered new if it travels ~25% of the screen in one poll.
2025-07-12 14:11:22 -05:00
libretroadmin 4a7b00f43e Rewrite string_list_join_concat and menu_entries_append function 2025-07-12 20:53:48 +02:00
libretroadmin 0d854fef31 remove strlcats from string_list_join_concat_special 2025-07-12 20:36:58 +02:00
libretroadmin cb02d1ffcf Stop using strlen_size, just use regular strlen 2025-07-12 20:27:41 +02:00
sonninnos 743e0406bd Environ logging cleanups 2025-07-12 08:41:54 +03:00
sonninnos 419007c1ca
Smaller regular widget notification option (#18085) 2025-07-12 04:37:38 +03:00
github-actions 1808a38deb Fetch translations from Crowdin 2025-07-12 00:16:34 +00:00
Eric Warmenhoven 4bdb68b9d9
apple: fix coretext bounds checking 2025-07-11 11:57:34 -04:00
libretroadmin 2dbb9f62d8 * Change some variable naming conventions
* Make return control paths less dependent on variables
2025-07-11 02:15:12 +02:00
libretroadmin bca5cafaa6 Rewrite nested_list functio
Rewrite core_info function - no more strlcat usage
2025-07-10 22:34:45 +02:00
sonninnos b2ca569521 Logging unification cleanups 2025-07-10 05:59:06 +03:00
github-actions 40e3b56d04 Fetch translations from Crowdin 2025-07-10 00:17:32 +00:00
sonninnos 3885f4f8a5 Core updater logging cleanups 2025-07-09 17:49:24 +03:00
sonninnos d5a5681612 More room for widget task progress percentage 2025-07-09 17:45:26 +03:00
Eric Warmenhoven 47bc1188ae
apple: fix some coretext alignment and rendering issues 2025-07-08 23:49:54 -04:00
Eric Warmenhoven d4fe2055f9
ios/tvos: no webserver/webdav server on simulator 2025-07-08 23:49:53 -04:00