LibretroAdmin
0ffdd14940
Change msg_len of font driver to size_t - avoids all the type
...
casting/conversion
2022-09-02 01:10:28 +02:00
LibretroAdmin
003cea5d42
Fix some 'implicit conversion loses precision' warnings
2022-09-01 15:15:48 +02:00
LibretroAdmin
60030e373e
Reduce snprintfs + assorted cleanups ( #14369 )
...
* Reduce snprintf and/or use them only for concatenating the
string formatting of numbers/values
* Reduce snprintfs
* Use snprintf for concatenation at parts
* * We don't need to NULL-terminate strings that get passed to strlcpy/strlcat
and friends
* Use snprintf for concatenation in certain instances
* Do away with some string intermediary copies where we can avoid it
* Fix warning unused variable
* * Reduce snprintf calls
* Rewrite snprintf calls into strlcpy where possible
* Use snprintf for concatenation when necessary
* Do away with some string intermediary copies in task_translation.c
* run_translation_service - make switch slightly smaller
2022-09-01 04:17:07 +02:00
sonninnos
a96c5f77c8
(Ozone/XMB/RGUI) Explore menu thumbnails ( #14365 )
2022-08-31 14:42:10 +02:00
LibretroAdmin
ef0e9ccc38
(MaterialUI/RGUI/XMB) Less snprintf calls
...
(menu_displaylist.c) Do away with one less strlen by using
the return value of snprintf here instead
2022-08-29 14:38:26 +02:00
LibretroAdmin
f1ff92c881
* menu_entries_append and menu_entries_append_enum are now combined into
...
one - if you set the last parameter to a valid 'rarch_setting_t' pointer
and enum_msg to MSG_UNKNOWN, you will get the previous menu_entries_append
behavior
* Renamed remaining function to menu_entries_append so that we have one
consistent way of adding menu entries instead of two
Reduces some code duplication significantly
2022-08-27 17:40:52 +02:00
LibretroAdmin
25b76fdb54
input_keyboard_osk_event_append and others: don't call strlen
...
implicitly, always leave it up to caller
font_driver_get_message_width - try to avoid scenario where 'len'
is 0
2022-08-27 15:13:56 +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
sonninnos
1f048dd358
(XMB+Ozone) Core option category icon refinements ( #14354 )
2022-08-26 16:11:36 +02:00
sonninnos
de67f174bf
(XMB) Fix icons in 'Load Content' Favorites ( #14353 )
2022-08-26 08:35:12 +02:00
LibretroAdmin
575e331fd1
If we already know the length of the string, use strldup instead.
...
Avoids the internal strlen call inside strdup, and strdup is a deprecated
function starting from MSVC2005 anyways.
NOTE: Do NOT pass STRLEN_CONST as n parameter to strldup, it needs to
be at least +1 character higher than the strlen return value of the same
string
2022-08-25 16:31:54 +02:00
sonninnos
8fd0961c9a
Show playlist entry as 'Quick Menu' header title ( #14350 )
2022-08-25 04:41:14 +02:00
LibretroAdmin
72cc98e9bd
Remove unused variables
2022-08-24 17:42:01 +02:00
LibretroAdmin
2bc723bb4b
(Menu) Move duplicate code is_running_quickmenu to menu_driver.c
2022-08-24 13:28:53 +02:00
LibretroAdmin
a147cb09d9
Get rid of duplicate code - move function to menu_driver.c and have
...
both XMB and Ozone use it
2022-08-24 13:14:55 +02:00
sonninnos
5f7d14966c
(Ozone+XMB) Fullscreen thumbnail browsing ( #14342 )
2022-08-24 12:35:54 +02:00
LibretroAdmin
e769436876
(word wrap functions in stdstring.c) Avoid implicit strlens, caller
...
should pass the 'length' to the function instead
2022-08-23 17:06:01 +02:00
sonninnos
c818024bc6
(RGUI) Savestate thumbnails ( #14326 )
2022-08-18 02:12:50 +02:00
LibretroAdmin
0edbe945b4
(MaterialUI/XMB) Optimize refreshing of playlists
2022-08-06 20:32:19 +02:00
LibretroAdmin
1b43e60c7c
(Ozone) Use less path_remove_extension and work more with return values
...
from file_path.c functions
(menu_cbs_title) Small optimization to string concatenation
2022-08-06 19:51:00 +02:00
TheRhysWyrill
9d939a35d6
Add Daite XMB Icon Theme ( #14263 )
2022-08-05 04:27:34 +02:00
LibretroAdmin
6ad88b080e
Turn these two fill_pathname_join_delim() calls into plain strlcat()
2022-08-04 15:15:27 +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
88bc26da4e
Replace some more trivial strlcat calls
2022-08-04 04:05:27 +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
6dd52d9bb1
Get rid of more boilerplate code in file_path_special.c
2022-08-02 18:05:51 +02:00
LibretroAdmin
556e6702ef
Start downscaling on file_path_special.c
2022-08-02 17:54:38 +02:00
LibretroAdmin
70ca20fbf9
(MaterialUI) Fix earlier mistakes made (cd04f770b9a5b6d35df67ff38d89694cee561750) -
...
we need two separate icon paths cached - one for MaterialUI and one for Ozone (the system
icons)x
2022-08-02 17:25:52 +02:00
LibretroAdmin
f472e4d0de
(gfx_widgets) Call fill_pathname_application_special outside of hot functions
...
(gfx widgets) Pre-assemble and store paths that are not subject to change
2022-08-01 02:07:36 +02:00
LibretroAdmin
cd04f770b9
(MaterialUI) Don't keep assembling MaterialUI icons path - store it once
...
in materialui_init
2022-08-01 01:17:39 +02:00
LibretroAdmin
e9a6252fc7
(Ozone) Some simplifications - less string concatenation
2022-08-01 01:06:38 +02:00
LibretroAdmin
83a2ec1da8
(Ozone/XMB) Move some fill_pathname_join operations out of the loops since
...
the output string is not subject to change during iterations
2022-08-01 00:49:33 +02:00
sonninnos
349ef1add2
(XMB) Dynamic wallpaper fixes: ( #14247 )
...
- 'Load Content' playlists
- Period in the playlist name
2022-07-29 17:40:11 +02:00
sonninnos
0c4bf5f2e3
(Ozone) Fix playlist thumbnail mouse hover after returning from QM ( #14244 )
2022-07-29 15:01:44 +02:00
LibretroAdmin
22bef5dc6b
(Ozone) Remove unused arrays
2022-07-29 13:07:16 +02:00
LibretroAdmin
592f9384b0
Silence code analysis warnings by Xcode - unused variables - nothing
...
done with value set - etc
2022-07-29 08:29:43 +02:00
sonninnos
052cdce29b
(Ozone+XMB) Add playlist icons under 'Load Content' ( #14243 )
2022-07-29 07:12:01 +02:00
sonninnos
6c1de85add
(Ozone+XMB) Thumbnail fixes ( #14210 )
2022-07-28 19:21:59 +02:00
TheRhysWyrill
54d0d84696
Fixed Purple Rain Theme ( #14214 )
...
* Add Purple Rain Theme
2022-07-25 00:44:31 +02:00
TheRhysWyrill
522d1ed16d
Add Purple Rain Theme ( #14212 )
...
* Add Purple Rain Theme
* Revert "Add Purple Rain Theme"
This reverts commit ceb896785b097d030d463f400d27b7f2146ac29a.
* Add Purple Rain Theme
2022-07-24 21:26:16 +02:00
libretroadmin
5c98caa7fd
Don't NULL-terminate string if we pass it to strlcpy and/or a
...
file_path function that calls strlcpy under the hood
2022-07-24 06:22:35 +02:00
sonninnos
1f244aac01
(Ozone+XMB) Thumbnail improvements ( #14188 )
2022-07-21 15:25:12 +02:00
libretroadmin
69ddf03c91
Remove unused return variables
2022-07-12 18:00:33 +02:00
libretroadmin
b7926605f4
Remove fill_short_pathname_representation
2022-07-11 21:40:09 +02:00
libretroadmin
adf9994828
Deprecate fill_pathname_base_noext
2022-07-11 20:13:44 +02:00
libretroadmin
d706c9c5bf
Start deprecating trivial functions in file_path.c
2022-07-11 19:56:46 +02:00
libretroadmin
c54499c5fb
(Ozone) Simplify code
2022-07-09 14:29:49 +02:00
Cthulhu-throwaway
9af17b633e
(Netplay) Host Ban Submenu ( #14151 )
2022-07-07 16:08:46 +02:00
libretroadmin
bf5409881c
gfx_display_rotate_z optimizations - if radians is 0, we know cosine
...
and sine already. Avoid the computation with sinf/cosf and pass it as value to the
function when possible
2022-07-06 11:03:15 +02:00
libretroadmin
6607ff3aaa
rotate_draw - get rid of scale_x/y/enable - scaling is only done now
...
in XMB at two spots - refactor gfx_display_rotate_z so that it only
manipulates the input matrix' Z axis
2022-07-05 20:50:01 +02:00