LibretroAdmin
ed58e4a8d8
Conventionalize len variables:
...
* In function arguments, use 'size_t len'
* Inside the function, use '_len'
* If you need a seciondary len variable inside the function, use '__len'
2024-12-27 05:51:33 +01:00
libretroadmin
9c71620c53
(gfx_widget_load_content_animation) icon_file can be reduced to NAME_MAX_LENGTH size
2024-12-25 21:34:02 +01:00
libretroadmin
de8f979cb7
less string copies
2024-12-24 05:10:09 +01:00
libretroadmin
772620f6fa
gfx_widget_load_content_animation - use fill_pathname more
2024-12-23 06:33:43 +01:00
LibretroAdmin
739f2ff55c
Reduce calls to path_remove_extension - use fill_pathname instead ( #17270 )
...
* Reduce calls to path_remove_extension - use fill_pathname instead
* More fill_pathname usage
2024-12-20 21:40:58 -08:00
libretroadmin
e675ea7e29
Variable cleanups - add TODO/FIXME notes for spurious variable sizes
2024-09-09 15:22:08 +02:00
libretroadmin
b8391e233f
* PATH_MAX_LENGTH redefined from 4096 to 2048
...
* Massive reduction in heap space allocation, going from settings struct
264kb to 119Kb
* Use NAME_MAX_LENGTH for base paths/names, etc
* Use DIR_MAX_LENGTH for directory sizes
2024-09-09 05:47:32 +02:00
zoltanvb
5d94bb36fb
Recalculate animation end position if layout changes after start.
2023-07-25 10:18:01 +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
04f510d503
Cleanup header includes
2022-12-05 15:10:19 +01:00
LibretroAdmin
d506210fbe
(menu_driver.c) Use flags instead of bools ( #14500 )
...
* (menu_driver.c) Use flags instead of bools
2022-10-08 22:52:18 +02:00
LibretroAdmin
c1709f2218
(gfx_widget_load_content_animation) Get rid of strlen
2022-09-13 09:14:43 +02:00
LibretroAdmin
5e8987839e
(gfx_widgets) Cut down on strlens
2022-09-13 03:57:05 +02:00
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
6f738d4fbd
Gradually get rid of strcpy_literal
...
Reasons:
1 - Just a macro for strcpy
1.2 - doesn't have a return type unlike strlcpy, can't be used
for string concatenation
1.3 - unsafe compared to strlcpy
Do either manual string assignment per character or strlcpy, no
inbetween by resorting to strcpy
2022-08-23 15:04:47 +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
ec4c15e8e4
(gfx_widget_load_content_animation) Cleanups - one strlen instead of two,
...
NULL termination of some strings is not necessary since it gets passed to
strlcpy and/or fill_pathname_join anyway
2022-08-04 00:00:21 +02:00
libretroadmin
30d38d108a
Cleanups :
...
* Don't NULL terminate string if we pass to strlcpy and/or a file_path
function that uses strlcpy under the hood
* General cleanups in gfx_animation.c
2022-07-23 00:35:57 +02:00
libretroadmin
adf9994828
Deprecate fill_pathname_base_noext
2022-07-11 20:13:44 +02:00
libretroadmin
b6c9740ba3
Get rid of gfx_timer_t typedef - replace with float
2022-07-06 14:41:15 +02:00
libretroadmin
bb6937949d
gfx_widget_draw_icon optimization - if radians is 0, we know cosine and
...
sine already. Avoid sinf/cosf computation when possible
2022-07-06 11:40:59 +02:00
libretroadmin
1798651041
(gfx_widgets) scale_enable can b set to false for widgets, scale_factor was always 1.0f
...
(XMB) set scale_enable to false when scale_factor is 1.0f
2022-07-05 14:18:20 +02:00
twinaphex
8ef9065c86
Get rid of menu_driver_is_alive - we don't want these one/two-line getters/setters anymore
2021-09-28 10:27:00 +02:00
twinaphex
7c8c53fb2d
Get rid of menu_driver_get_ptr - we are going to be using only one
...
getter for each component state instead of several getters
2021-09-21 07:14:27 +02:00
twinaphex
bea512b70b
Get rid of gfx_display_draw_texture - use gfx_display_draw_quad instead
2021-08-22 17:57:21 +02:00
jdgleaver
f4511f6fa4
(core_info) Performance optimisations + code clean-ups/refactors
2021-04-26 14:30:31 +01:00
twinaphex
544a17926b
Use path_basename_nocompression where we are sure we are not
...
dealing with a filename with a compressed archive hash
2021-04-11 17:44:41 +02:00
twinaphex
e5e8e9b5d8
Expand widget init function
2021-04-08 00:51:10 +02:00
twinaphex
cd9d6c0511
gfx_display - Get rid of lots of pointer grabbing
2021-03-25 20:12:34 +01:00
twinaphex
80788f9df6
Get rid of some ternary operators
2021-03-22 20:53:56 +01:00
twinaphex
10f395df25
Silence warning
2020-10-28 02:22:02 +01:00
twinaphex
e8a7195a46
Rename gfx_timer_start to gfx_animation_timer_start
2020-10-14 07:26:24 +02:00
twinaphex
992e780407
Get rid of gx_timer_kill
2020-10-14 02:09:39 +02:00
twinaphex
fbd4fc5094
Try to avoid having to repeatedly grab the pointer
2020-10-03 20:30:57 +02:00
twinaphex
ecd72b5be6
(widgets) Get rid of get_ptr function calls
2020-10-02 22:23:51 +02:00
twinaphex
c45e7c9bc5
Cleanup
2020-10-02 11:36:11 +02:00
twinaphex
fe38cd9cbc
(gfx widgets) get rid of more getter functions
2020-10-01 10:55:37 +02:00
twinaphex
dee807cb54
(gfx widgets) Start removing a lot of getter functions
2020-10-01 10:50:45 +02:00
twinaphex
1e6828fd63
Cleanups
2020-09-30 19:18:40 +02:00
twinaphex
5a481d8653
Get rid of gfx_display_blend_{begin/end}
2020-09-23 21:37:18 +02:00
twinaphex
0e49f058f3
Use strcpy_literal in more places
2020-09-19 23:59:06 +02:00
twinaphex
3ec21b292c
Reorder structs, alignment
2020-08-15 01:18:23 +02:00
jdgleaver
c1f67d3f72
(Load Content Animation) Fix detection of 'favourites' playlist
2020-07-17 10:49:06 +01:00
Twinaphex
367530683c
Get rid of unused variables
2020-07-15 19:47:45 +02:00
jdgleaver
506aa0a36c
Add optional widget-based 'load content' launch feedback animation
2020-07-09 13:05:28 +01:00