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
de8f979cb7
less string copies
2024-12-24 05:10:09 +01:00
Eric Warmenhoven
bee0d2226f
cleanup: minor tidying of unused code in task_http ( #17251 )
2024-12-11 22:54:26 -08:00
Eric Warmenhoven
a26f6f6b45
webdav: fixes for reauth and parallelism ( #17132 )
2024-10-29 12:03:46 -07:00
libretroadmin
f4ed638347
Rewrite libretro-common task_queue, use flags
2024-09-10 02:42:07 +02:00
libretroadmin
36bcbefc96
Cleanup some char variables - title variables will always be 128
...
in size
2024-09-10 00:15:23 +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
Eric Warmenhoven
893b0d142e
Cloud Sync ( #15548 )
...
* cloud sync - algorithm and abstract cloud storage API
* WebDAV cloud sync driver, and associated net_http improvements
* Cloud sync settings menu
2023-08-04 09:20:50 +02:00
Jamiras
e1c366317a
allow callback to look at response BODY even when HTTP status code indicates failure ( #15532 )
2023-07-29 04:59:44 +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
edecf0cb2d
Replace more strlcat calls with strlcpy
2023-06-18 19:25:24 +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
daa9e352cc
Remove asserts
2023-01-09 00:51:05 +01: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
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
460ca09c87
(task_http) Cleanups
2022-07-09 01:24:59 +02:00
Autechre
3b1a1ac8da
Remove miniupnpc dependency ( #13340 )
...
* use custom libretro-common UPNP
* Remove miniupnpc
2021-12-09 05:52:42 +01:00
Jamiras
5ac432026a
add helper function for accessing connection method
2021-07-27 21:02:14 -06:00
Jamiras
c9ca0489ed
allow concurrent POST requests to same URL
2021-07-23 22:04:42 -06:00
Ash Logan
a35323ace9
(task_http.c) Use 100% as maximum, not minimum
...
With previous logic, any normal percentage would get MAX'd to 100%
(max(70, 100) == 100). Correct math to use here is min
2021-07-18 14:47:25 +10:00
twinaphex
81e768435b
CXX_BUILD buildfix
2021-03-22 15:01:57 +01:00
Autechre
e62aabea95
Merge pull request #12157 from Jamiras/task_http_cleanup
...
have http tasks clean up after themselves
2021-03-16 09:06:58 +01:00
Jamiras
501fe45a9f
have http tasks clean up after themselves
2021-03-15 19:42:25 -06:00
Jamiras
015576b2ba
improve error handling for achievement unlocks ( #11916 )
2021-01-21 04:07:48 +01:00
twinaphex
1aceac6edb
Struct reorders
2020-08-14 18:51:50 +02:00