libretroadmin
327621938b
Cut down on gotos
2025-07-22 14:16:31 +02:00
LibretroAdmin
e011e710bd
Make last_slash concatenation parts consistent ( #18102 )
2025-07-19 23:37:31 +02:00
libretroadmin
2f5d95b0cf
Move non-essential string_list functions out of file
2025-07-18 01:43:03 +02:00
libretroadmin
2770470695
Rewrite find_last_slash - use one loop, skip two strrchr calls
2025-07-16 01:31:29 +02:00
libretroadmin
047f926540
use last_slash in file_path
2025-07-16 00:31:09 +02:00
libretroadmin
d37068cfb8
Move code back
2025-07-15 23:35:37 +02:00
libretroadmin
1cc0f3273f
(file_path) Optimize find_last_slash:
...
* Do one loop iteration inside the function instead of two
strrchr(s) for finding the forward and backwards slash
2025-07-14 18:44:49 +02:00
libretroadmin
9b6641c951
(file_path) fill_pathname_join_special - small tweak
2025-07-14 17:37:33 +02:00
libretroadmin
2d632fed54
file_path changes:
...
* improve fill_pathname_slash, no longer call strlcat
- strlcat call would have been done in strlcat regardless
2025-07-14 17:26:15 +02:00
libretroadmin
215219dc51
Change libretro-common code back
2025-07-14 05:50:17 +02:00
libretroadmin
3226361c1d
Prevent some nbio windows mmap memory leaks when failing
2025-07-14 01:19:39 +02:00
libretroadmin
de76511ee7
(file_path) Cleanups / refactors
2025-07-13 08:02:28 +02:00
libretroadmin
e13140ba04
Rewrite some strlcat calls into strlcpy
2025-06-26 14:47:53 +02:00
pstef
281dff8956
Silence a stringop-overflow warning
...
Guard against an unlikely case.
2025-03-25 16:55:39 +00:00
LibretroAdmin
366612fb82
Revert "Fix some string appending"
...
This reverts commit 65b9ea4e76
.
2025-02-11 23:48:12 +01:00
LibretroAdmin
65b9ea4e76
Fix some string appending
2025-02-11 23:08:55 +01:00
LibretroAdmin
91aa8034b1
Style nits/conventions
2025-02-09 16:43:51 +01:00
LibretroAdmin
b47e09534c
Less string copies
2025-01-17 13:10:17 +01:00
LibretroAdmin
1e83bfb971
Reduce char arrays
2025-01-17 12:55:45 +01:00
LibretroAdmin
31b7812720
Function argument name standardization
2025-01-17 04:16:12 +01:00
LibretroAdmin
86c9a43b08
Use path_get_extension_mutable
2025-01-16 21:09:19 +01:00
LibretroAdmin
a5c9d9520f
* Use fill_pathname_basedir where possible
...
* Move static variable to only function where it's used
* Change signature of file_path.c function
2025-01-15 22:17:59 +01:00
LibretroAdmin
047e04ed3e
Standardize local len variable naming conventions
2025-01-15 15:00:12 +01:00
LibretroAdmin
47d888364d
Standardize len variables - argument should always be named 'len',
...
while local len variables should have '_' prefix
2025-01-13 21:53:49 +01:00
Eric Warmenhoven
fcda24be29
Files in archives should always be marked as such ( #17390 )
2025-01-11 02:51:04 +01:00
LibretroAdmin
a98ab483cb
Restore archive_file_7z.c
2025-01-07 02:22:57 +01:00
Eric Warmenhoven
53d9452439
Change config_get_path/array return back to bool ( #17333 )
2025-01-02 14:35:33 +01:00
LibretroAdmin
1e656261b0
Local len variables need to have '_' prefix
2024-12-30 14:03:58 +01:00
Eric Warmenhoven
ef1b325978
Change return types for some path functions to size_t ( #17303 )
2024-12-28 22:26:30 +01:00
LibretroAdmin
18c85b5ccd
Cleanups -
...
* Less string copies
* Some general cleanups
* Add extra param to runloop_message_queue_push so we can pass size_t
of the message
* Consistent conventions for local variable usage for certain things
2024-12-27 15:13:45 +01:00
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
8074a833aa
Cleanups/less string copies and indirection
2024-12-24 21:07:31 +01:00
libretroadmin
02bcbffbab
fill_pathname - one less string copy
2024-12-24 00:08:04 +01:00
libretroadmin
2b94bccad2
(fill_pathname_join_delim) - no longer use strlen
2024-12-23 23:42:56 +01:00
libretroadmin
cdef3ff9f7
strftime - write directly into string instead of using intermediary copies
2024-12-23 07:10:03 +01:00
libretroadmin
442b9bc3da
Syntax style nits
2024-12-23 05:44:40 +01:00
libretroadmin
6b8466f87a
menu_driver_set_thumbnail_system/menu_driver_get_thumbnail_system
...
just small wrapper functions, remove
2024-12-22 04:53:04 +01:00
libretroadmin
c492e46d96
Change function signature of fill_pathname_parent_dir
2024-12-19 20:51:33 +01:00
libretroadmin
d94cc3af72
Simplify fill_pathname_application_path
2024-12-19 20:17:09 +01:00
libretroadmin
60e5858d51
fill_pathname_application_dir - use path_basedir instead of
...
path_basedir_wrapper
2024-12-18 23:39:24 +01:00
libretroadmin
6b801333e7
file_path - change function signatures - output char array always
...
is named 's', and size of it 'len'
2024-12-18 21:43:33 +01:00
Eric Warmenhoven
2650712cb3
Small tweaks to fill_pathname_application_path ( #17268 )
2024-12-18 11:29:58 -08:00
libretroadmin
4521f6bcb2
Cleanups
2024-12-18 20:15:58 +01:00
Viačasłaŭ
3019b926c2
Fix typos ( #17068 )
2024-10-01 17:36:33 -07:00
libretroadmin
23bd9686e5
Silence unused variable warnings
2024-09-11 15:48:43 +02:00
Jay Paul
e61b3ae2ba
Sort Remaps by Connected Controller ( #16747 )
...
* sort remaps by connected controller if option is enabled
* ensure dir name is valid based on input device name
* Fix comments
* Fix forbidden mixed declarations and code
* fixing build errors
* fix additional build warning/error
* Resolved code review change requests
* Changed strlcat to strlcpy as per recommendation
* Retrigger checks
* Use proper path separator.
* Ensure default value is toggled off.
* Ensure that gamepad device name is valid.
2024-09-10 17:39:35 -07:00
libretroadmin
29f011acef
* Inline find_last_slash
...
* explore_load_icons - fill_pathname_slash is equivalent to usage
of strlen here, no need to call strlen
2024-09-10 16:02:06 +02:00
libretroadmin
7f87a46744
More downsizing of variables
2024-09-09 16:18:32 +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
libretroadmin
9efb498bde
(config_file) Use flags
2024-09-08 18:12:12 +02:00