Commit Graph

94 Commits

Author SHA1 Message Date
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 da13fb0f48 Don't include errno.h in files that don't justify its use 2022-08-25 05:19:30 +02:00
libretroadmin fa9e56d824 input_autoconfigure_connect - have boolean return value
- task_autodetect.c - cleanups, try to do less with generic
error labels and gotos, etc.
2022-07-09 00:53:08 +02:00
twinaphex b2bf822f13 Add HAVE_AUDIOMIXER switch 2019-07-11 11:51:06 +02:00
twinaphex 3aef826dee (task_file_transfer.c) Cleanups 2019-05-22 04:56:09 +02:00
twinaphex 9421584772 Header include updates 2019-01-31 19:41:51 +01:00
twinaphex 0083e10926 Some header include changes - create task_file_transfer.h 2019-01-20 02:17:43 +01:00
twinaphex e7272ddefa (Audio mixer) Add MP3 support as well 2018-04-28 14:18:04 +02:00
twinaphex 3f7c318e3f (Audio mixer) Add FLAC support to audio mixer 2018-04-28 11:17:37 +02:00
twinaphex e35394d4bd Fix MSVC 2003 build 2017-11-26 22:41:34 +01:00
Romain Tisserand cbe2d9a941 Preliminary MOD/S3M/XM support through ibmx library (part of micromod repository) 2017-08-04 15:05:29 +02:00
twinaphex 4333e3d5e7 Cleanups 2017-05-20 14:02:16 +02:00
twinaphex 9a90477c6d Reimplement task_audio_mixer.c 2017-05-18 01:19:47 +02:00
twinaphex b3faed3906 Remove NBIO_STATUS_TRANSFER_PARSE_FREE to NBIO_STATUS_TRANSFER_FINISHED 2017-05-18 00:39:39 +02:00
twinaphex 4ad8d3c917 Remove NBIO_STATUS_POLL 2017-05-18 00:09:17 +02:00
twinaphex 67610b8263 Update task_audio_mixer.c 2017-05-15 11:07:12 +02:00
twinaphex dd4146e302 Try to write initial implementation of audio mixer task 2017-05-14 23:12:27 +02:00
twinaphex 72bd83b8d1 Cleanups to tasks_internal.h 2017-05-13 18:08:37 +02:00
twinaphex 476738cc5c Cleanups 2017-05-09 20:08:40 +02:00
twinaphex 7ed57ee77d (task_image) Cleanups 2017-05-09 20:01:42 +02:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex aa47903520 Prevent 'dereference before null check' 2017-01-18 17:53:25 +01:00
twinaphex 583511c045 nbio handle should be initialized on the thread, not the
main thread
2016-12-30 04:58:58 +01:00
Brad Parker 41f40acfc4 guard task struct read/writes across threads with a mutex, fixes several data races found by ThreadSanitizer and helgrind 2016-12-29 00:54:12 -05:00
twinaphex 7d26034ebe Rename rarch_task_* to task_* 2016-05-27 18:14:47 +02:00
Torsten Paul 30e9cc1f10 Ensure memory is not used after free(). 2016-05-23 22:41:24 +02:00
twinaphex cb4db5c5ab Don't be dependent on nbio->image inside task_file_transfer 2016-05-18 23:14:07 +02:00
twinaphex d53b245528 Cancel task instead 2016-05-18 17:37:43 +02:00
twinaphex 7aadde73d8 Handle cb return error code for task cancellation 2016-05-18 17:32:39 +02:00
twinaphex 9e1276d76f (MSVC) Buildfixes 2016-05-14 01:32:05 +02:00
twinaphex acbc9116e3 Turn nbio_image_handle_t member image into pointer 2016-05-13 15:00:44 +02:00
twinaphex 7c1938b674 Rename task functions 2016-05-13 10:19:53 +02:00
twinaphex bdf4a173f2 Remove file transfer frame_count 2016-05-13 10:10:54 +02:00
twinaphex 8b07f39d6f Create tasks/task_image.c 2016-05-10 07:54:47 +02:00
twinaphex 60b8cf7993 Start adding notes to task_file_transfer.c 2016-05-10 06:16:27 +02:00
Jean-André Santoni 7dfb3c373a (XMB) Thumbnail type switching 2016-04-08 01:42:53 +07:00
twinaphex 93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +01:00
twinaphex 1721a23d54 Style nits 2016-02-10 05:41:53 +01:00
twinaphex 5b6d310abd Rename enums 2016-02-09 18:26:27 +01:00
twinaphex 4210ee197b Rename tasks.c to task_queue.c 2016-02-09 17:55:15 +01:00
twinaphex 6e9bc55dd6 Rename task_ctl to task_queue_ctl 2016-02-09 17:51:51 +01:00
twinaphex 08eb091610 Rename rarch_ to retro_ 2016-02-09 17:47:04 +01:00
twinaphex ce2869b4d8 Create tasks_internal and split up RA-specific task code to outside 2016-02-09 17:12:39 +01:00
twinaphex c57995b3eb Style nits/cleanups 2016-02-03 17:41:04 +01:00
twinaphex a267bdfbe3 MOve gfx/image/image.c to gfx/video_texture_image.c 2016-01-30 02:39:08 +01:00
twinaphex b807b89837 Add TASK_CTL_PUSH 2016-01-28 09:42:55 +01:00
twinaphex ec15a43cf1 N/A 2016-01-24 00:33:06 +01:00
twinaphex 1f039b53f3 (task_http.c) Cleanups/plug possible memory leaks 2016-01-21 03:19:14 +01:00
twinaphex 7a55ae3765 Start updating headers for 2016 2016-01-10 04:06:50 +01:00
Higor Eurípedes 45f85322cb (task_file_transfer.c) Show nbio_open() error 2015-12-07 12:28:22 -03:00