62 Commits

Author SHA1 Message Date
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
96ffd8e025 Revert "Remove HAVE_COMPRESSION ifdefs in file_path.c"
This reverts commit 4103b70833bacdd6fdd5af697bff92b996cd4f1c.
2016-12-17 12:55:38 +01:00
twinaphex
4103b70833 Remove HAVE_COMPRESSION ifdefs in file_path.c 2016-12-17 12:20:49 +01:00
twinaphex
5364b0b837 Move compression-related code outside of libretro-common file_path.c
and move it into RetroArch's file_path_special.c file instead
2016-12-17 11:54:46 +01:00
twinaphex
ee7787dd52 (task_decompress.c) Don't log this 2016-12-15 21:21:39 +01:00
Brad Parker
d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex
051c103ea1 Prevent implicit memsets 2016-10-16 01:31:06 +02:00
twinaphex
1388220866 (tasks) Don't do implicit memsets in crucial performance-oriented code 2016-10-08 18:31:43 +02:00
twinaphex
d6b9c4f17a Prevent some Coverity warnings 2016-09-29 19:24:18 +02:00
twinaphex
cae92ed91d (tasks) Cleanups 2016-09-29 12:02:45 +02:00
Brad Parker
af98ee1c8a Add CRC calculation function that works with archives with or without a path inside (first file is used if no path)
Add all archive's contents to database scan list when scanning files and directories

Allow scanning a single file that is an archive

Remove unnecessary prototypes from archive_file.h

Simplify retrieving of CRCs from archives when scanning
2016-09-25 00:15:05 -04:00
twinaphex
c7a739b2bd C89_BUILD fix 2016-09-20 03:01:20 +02:00
Brad Parker
d49add014c forgot more archive paths 2016-09-19 20:58:52 -04:00
twinaphex
bfeb0111f8 Fix C89_BUILD errors 2016-09-19 18:29:10 +02:00
Brad Parker
050ab56038 set archive path before extracting 2016-09-18 16:05:58 -04:00
Brad Parker
a7ffead8f6 fix more memory corruption 2016-09-18 15:20:27 -04:00
Brad Parker
530f8ae107 fix memory corruption due to wrong userdata type 2016-09-18 14:32:29 -04:00
Brad Parker
7c29fd6c33 create 7z archive backend, enables scanning of 7z content 2016-09-18 10:31:21 -04:00
twinaphex
51b0e61712 Cleanups 2016-09-11 16:24:02 +02:00
twinaphex
a585017208 Rename MENU_FILE_ to FILE_TYPE_ 2016-06-20 15:50:37 +02:00
twinaphex
450e1f4746 Rename menu_hash_to_file_type 2016-06-20 15:33:22 +02:00
twinaphex
e59fb6c0d9 Bugfix 2016-06-20 15:22:31 +02:00
twinaphex
7d3780e09f Refactor some code in task_push_decompress 2016-06-20 15:21:42 +02:00
twinaphex
34ad3bd103 Cleanups 2016-06-03 05:24:21 +02:00
twinaphex
7d26034ebe Rename rarch_task_* to task_* 2016-05-27 18:14:47 +02:00
twinaphex
974d3245d2 Fix logically dead code warnings 2016-05-23 22:04:00 +02:00
twinaphex
0a3224180b (Coverity) Fix uninitialized variables; fix some resource leaks 2016-05-23 21:19:28 +02:00
twinaphex
7c1938b674 Rename task functions 2016-05-13 10:19:53 +02:00
Sebastien Ronsse
b100846ad5 task decompress: Refactor decompress checking code 2016-05-05 10:18:29 +10:00
Sebastien Ronsse
b8849a574c task decompress: Add helper decompress check method 2016-05-05 10:18:29 +10:00
twinaphex
c7e13e2bcd (libretro-common) Rename file_archive to archive_file 2016-03-20 16:14:40 +01:00
twinaphex
93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +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
d61eb7a8db Add TASK_CTL_FIND 2016-01-28 09:57:55 +01:00
twinaphex
b807b89837 Add TASK_CTL_PUSH 2016-01-28 09:42:55 +01:00
twinaphex
425406537c Fix Android crash 2016-01-26 04:29:19 +01:00
twinaphex
9459cf6445 Rename zlib_ to file_archive_ 2016-01-24 22:17:11 +01:00
twinaphex
3c2a45d923 Rename file_extract functions 2016-01-24 07:42:46 +01:00
twinaphex
552e78c9bc Rename file_extract to file_archive 2016-01-24 07:29:11 +01:00
twinaphex
9256cd2fbc Start adding ways to extract only one file from a ZIP 2016-01-24 00:12:05 +01:00
twinaphex
a3ae0e9a90 Cleanup 2016-01-24 00:06:50 +01:00
twinaphex
076e55a945 Fix extraction of ZIP files 2016-01-21 21:33:52 +01:00
twinaphex
e8d86ef013 Cleanups/indents 2016-01-21 03:16:48 +01:00
twinaphex
c9fc8cd7d3 rarch_task_push_decompress - deal with possible memory leaks 2016-01-21 03:14:22 +01:00
twinaphex
9095399aa8 (task_decompress.c) Use path_is_directory 2016-01-21 02:36:58 +01:00