Commit Graph

11 Commits

Author SHA1 Message Date
libretroadmin
34a18f64e8 Don't do NULL termination on string when we pass the string to
strlcpy and/or a file_path function that does strlcpy under the hood
2022-07-23 10:46:05 +02:00
LibretroAdmin
29774f5b7a
Small opts (#14186)
* (joypad_connection) Small optimizations -
* Turn functions static where possible
* Hose strlen call out of loop

* (input_driver.c) General cleanups:
* Some small code/style nits

task_screenshot.c:
* Move widget callback function for screenshots to task_screenshot.c

(file_path.c):
* Turn get_pathname_num_slashes into static function
* path_linked_list_free - always returns true, so get rid of return value
* path_linked_list_new - fix function signature
* path_get_archive_delim - do not NULL-terminate string, already done by strlcpy later on

General:
* Slight optimizations - use int/size_t for loop counter variable instead of unsigned
* Take advantage of fact that strlcpy already NULL-terminates, so don't do this explicitly
outside if we're just going to end up calling strlcpy/fill_pathname_join on it anyway
2022-07-19 10:01:33 +02:00
twinaphex
646cadba8c Another style nit 2021-07-20 05:23:12 +02:00
schellingb
ba1ed2da4b New faster json parser/writer library rjson
Replace existing libraries jsonsax_full and jsonsax with it
2020-10-12 03:02:20 +09:00
twinaphex
4ec216dc0b Get rid of file_path_str 2020-08-22 01:06:10 +02:00
twinaphex
3680804217 Undo path_basedir_size 2020-08-04 03:05:20 +02:00
twinaphex
3635bf0d01 Silence some warnings 2020-08-01 18:04:56 +02:00
twinaphex
8656b3d6f8 Create specialized optimized path_basedir_size 2020-07-11 19:29:43 +02:00
twinaphex
31ff7e384f Cleanups 2020-05-24 21:55:41 +02:00
twinaphex
3b207990ce Cleanups 2020-02-23 06:34:41 +01:00
jdgleaver
00397a33f0 (Disk Control Interface) Add support for saving/restoring last used disk in playlists + code overhaul 2020-01-22 17:09:12 +00:00