libretroadmin
6e06f14180
Cut some more strlcat calls
2023-07-16 22:21:43 +02:00
libretroadmin
9e34f22a29
Silence Xcode code warnings + general cleanups
2023-07-14 18:05:54 +02:00
libretroadmin
46d6240f21
Rewrite some more strlcat calls
2023-06-20 19:52:38 +02:00
libretroadmin
bdc398d79f
- Safer code - use strlcpy where possible instead of manual character
...
assignments for strings longer than 2 chars
- Use strlcpy concatenation instead of strlcat
- Make sure that what remains of iteration of the '_len' variable
for manual char assignment
is done in a safer way so mistakes are less possible
2023-06-20 16:33:55 +02:00
libretroadmin
631301b3f7
* Cut down on strlcat calls when possible and replace them with clever
...
usage of strlcpy (when position/offset of previous strlcpy/snprintf call
is known. strlcat implementation in libretro-common makes implicit strlen
call, using strlcpy avoids this
* Reduce a bunch of local char variables by use of said clever usage,
should save up on local stack size usage
2023-06-18 12:06:12 +02:00
libretroadmin
373d1307c0
(runtime_file.c) Cleanups - remove functions that are never used
2023-06-16 01:23:24 +02:00
libretroadmin
b951a010fd
Move strftime_am_pm to libretro-common and get rid of duplicated
...
function
2023-05-01 19:03:11 +02:00
libretroadmin
19f57716f1
Minor cleanups
2023-04-30 19:35:49 +02:00
libretroadmin
c087b044c2
* Add TODO/FIXME localize notes
...
* More snprintf optimizations
2023-04-30 19:30:07 +02:00
libretroadmin
6f457a570b
(runtime_file.c) Turn function static and add return value
2023-04-29 14:38:31 +02:00
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 82efa5a3d6
.
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 99186b1056
.
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 02b542e2a5
.
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