69 Commits

Author SHA1 Message Date
LibretroAdmin
61e24132bf (task_save.c) Simplification in control flow
(snprintf) Try to reduce or simplify snprintf calls, only tend to
use it for processing integers/numbers and avoid it for regular
string concatenation (NOTE: we try to be a bit safer about it to
address earlier cited criticism, although we don't consider concatenating
3 or 4 characters at the end to be insecure)
(msg_hash_to_str) Try to avoid duplicate calls to the same localized
string when we can just cache the results once instead locally
2022-08-27 07:55:02 +02:00
LibretroAdmin
7507e20703 Revert "(RJSON) Combine multiple consecutive rjsonwriter_raw calls into one"
This reverts commit 82efa5a3d6dd786d718ce1bcf38f6192454c5280.
2022-08-26 14:44:29 +02:00
LibretroAdmin
82efa5a3d6 (RJSON) Combine multiple consecutive rjsonwriter_raw calls into one
- significantly reduces the amount of function calls
2022-08-26 13:55:52 +02:00
LibretroAdmin
15fe258c1b Reduce snprintf calls 2022-08-25 13:03:08 +02:00
LibretroAdmin
f48ba41b67 Remove unused variables 2022-08-23 19:41:45 +02:00
LibretroAdmin
4a1aaa55ec
* Safer way of appending extensions at the end of the string - (#14318)
instead of this manual assignment, we can take advantage of the
string list in one of the instances to add the extensions to it.
Less string copying/concatenation that way later on as well.
* Append the extension to the string earlier before it's passed
to the leaf function that needs it
2022-08-13 01:40:45 +02:00
LibretroAdmin
05cf639712 Reduce amount of strlcats in retroarch.c 2022-08-08 21:46:37 +02:00
LibretroAdmin
5739c537a2 Some CXX_BUILD fixes 2022-08-05 17:40:06 +02:00
LibretroAdmin
b2634ea588 * Create fill_pathname_join_special - and specify fill_pathname_join
as deprecated.
* Use fill_pathname_join_special in the vast majority of cases where
we can ensure out_path is a new empty string
* Get rid of some extension concatenation with strlcat where encountered
* Some general cleanups with NULL termination of strings that get immediately
passed to strlcpy/strlcpy-adjacent functions
2022-08-04 14:19:38 +02:00
LibretroAdmin
e7f3432e48 Replace some trivial strlcat usage - use return value of preceding
strlcpy then simply append the extension to it at this location
2022-08-04 03:45:09 +02:00
LibretroAdmin
e4bff7c12c Move rjsonwriter helper inline functions over to separate file rjson_helpers.h 2022-08-01 17:41:34 +02:00
libretroadmin
8ac1a36259 Don't do NULL termination on strings when passing to strlcpy and/or
a file_path function that calls strlcpy under the hood
2022-07-26 07:01:10 +02:00
libretroadmin
06e1b6a68f Revert "Move strftime_am_pm to libretro-common rtime.c, remove duplicate"
This reverts commit 99186b1056b7e71d876bb868348059d2eec98ee8.
2022-07-12 03:31:42 +02:00
libretroadmin
99186b1056 Move strftime_am_pm to libretro-common rtime.c, remove duplicate
functions
2022-07-12 03:29:16 +02:00
libretroadmin
4bcc479041 Further refinement of function 2022-07-11 19:14:48 +02:00
libretroadmin
6475d0ca54 Make code identical for last_played_strftime and strftime_am_pm -
see opportunity here to cutdown on duplication and make this a public
function
2022-07-11 19:12:14 +02:00
sonninnos
ed83f0e7be
Fix and cleanup playlist last played 'Ago' (#14132) 2022-07-02 14:08:41 +02:00
sonninnos
860155969e
Add 'Ago' to playlist last played styles (#14086) 2022-06-22 22:55:32 +02:00
jdgleaver
8739264485
Enable runtime logging for contentless cores (#13671) 2022-02-25 18:23:55 +01:00
Tony
09880e92d2
Logging cleanups (#13320) 2021-12-04 14:21:12 +01:00
twinaphex
b45acf2223 MSVC buildfixes 2021-05-21 17:09:55 +02:00
twinaphex
0482892a9c Get rid of return variable for snprintf 2021-05-18 23:09:45 +02:00
jdgleaver
f4511f6fa4 (core_info) Performance optimisations + code clean-ups/refactors 2021-04-26 14:30:31 +01:00
twinaphex
8f79e14d0a Silence LGTM static code analysis warnings 2021-03-24 00:25:47 +01:00
twinaphex
4df6d287e3 (Clang) Silence 'n' is never used warnings 2021-02-03 11:48:33 +01:00
twinaphex
1b071f16f5 Silence implicit conversion warnings 2021-01-16 20:03:04 +01: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
ad2c0bb76d (runtime_file.c) Style nits 2020-08-23 21:51:39 +02:00
twinaphex
4ec216dc0b Get rid of file_path_str 2020-08-22 01:06:10 +02:00
twinaphex
3635bf0d01 Silence some warnings 2020-08-01 18:04:56 +02:00
twinaphex
408f40f413 Cut down on some callocs 2020-06-27 16:36:08 +02:00
twinaphex
021625fd4a Revert "Move static functions to top of files"
This reverts commit 02b542e2a57cfff798bdd4be54ec1bf0fff4695f.
2020-06-26 18:40:26 +02:00
twinaphex
02b542e2a5 Move static functions to top of files 2020-06-26 18:15:38 +02:00
Twinaphex
473f94ed58 Remove unused variable 2020-06-06 17:54:06 +02:00
jdgleaver
445921ac5d Core info search optimisations + improved core selection logic + clean-ups 2020-06-06 13:59:28 +01:00
jdgleaver
0a33e562f4 Add option to backup/restore installed cores 2020-06-04 12:20:58 +01:00
jdgleaver
18912ac23d Enable configuration of date seperator in clock and runtime 'last played' displays 2020-05-25 15:46:53 +01:00
im4potato
1c4cb37e61 Unify timedate ENUMs and cleanup 2020-05-21 16:26:06 -07:00
jdgleaver
63644ac761 (GLUI) Add desktop-style playlist view mode 2020-05-09 14:53:52 +01:00
jdgleaver
ad8a1174f7 Improve handling of 'broken' playlists 2020-04-07 12:00:16 +01:00
jdgleaver
05744bb69f (runtime_file) Remove settings pointer dependency 2020-03-27 11:12:32 +00:00
Ryunam
5a8106308e Update timedate style options for Last Played sublabel metadata 2020-03-19 18:47:42 +01:00
twinaphex
48ffe8dac3 Do not rely on settings->arrays.menu_driver anymore to check
which menu driver is active
2020-03-05 15:33:18 +01:00
twinaphex
32e4aea068 Start making the other code safe that is dependent on menu driver
ident checking
2020-03-04 20:47:39 +01:00
twinaphex
2be5ffe4e9 Improve ifdef - should be compiled in only if HAVE_OZONE is defined 2020-02-14 14:31:02 +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
twinaphex
05d71ebb67 Start reducing dependency on settings struct 2020-01-02 17:41:52 +01:00
twinaphex
b94b9e2adb Go back to plain strlcpy/strlcat - probably best to look at
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
twinaphex
1ed38ddb2d Start using return values of fill_pathname_ functions 2019-09-21 00:22:40 +02:00
twinaphex
ab515daa0c Try to get rid of file_path_str 2019-09-18 18:12:57 +02:00