Commit Graph

1278 Commits

Author SHA1 Message Date
twinaphex
b3ec735e75 Silence some more scan-build warnings 2016-09-25 15:25:20 +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
3f35e10014 Solve some warnings pointed out by scan-build 2016-09-25 05:55:55 +02:00
twinaphex
8025110f07 Cleanups 2016-09-25 05:18:42 +02:00
twinaphex
4e14ff8a66 Go through opaque pointer for glDeleteSync - GLsync as a type
might not be available
2016-09-24 00:04:19 +02:00
twinaphex
dac5b1aabd Fix warning 'dereference after null' 2016-09-23 02:05:12 +02:00
twinaphex
d641930baf Fix statement is unreachable warning 2016-09-22 23:10:11 +02:00
Brad Parker
d493273bcf use first extracted file if one is not specified and !need_fullpath and !block_extract 2016-09-22 16:03:31 -04:00
twinaphex
7dc297edfc (GLSM) Prevent warning 2016-09-22 04:09:10 +02:00
Gregor Richards
b0672e47ae Fix socket_send_all_blocking to fail on errors not related to blocking 2016-09-21 14:01:25 -04:00
twinaphex
3cbc03b675 (libretro-common/utils) Buildfix 2016-09-21 12:35:38 +02:00
twinaphex
84d8d97ea5 Update libretro-common/utils 2016-09-21 12:33:42 +02:00
Twinaphex
4d49bb44f2 (OSX) Buildfix 2016-09-21 02:30:21 +02:00
twinaphex
dbf6d9331f (rpng_encode.c) Use encoding_crc32 2016-09-21 02:16:56 +02:00
twinaphex
1a55721c78 Fix some high-priority Coverity-catched defects 2016-09-20 16:10:27 +02:00
twinaphex
14b297b144 Simplify file_archive_file_list_new 2016-09-20 03:25:34 +02:00
Brad Parker
992b87321a more archive paths 2016-09-19 21:06:23 -04:00
Brad Parker
137968c001 treat .apk files as .zip, set archive_path any time we need to decompress a file 2016-09-19 18:38:33 -04:00
twinaphex
1d53bbe110 Update libretro-common 2016-09-19 19:25:20 +02:00
twinaphex
bfeb0111f8 Fix C89_BUILD errors 2016-09-19 18:29:10 +02:00
twinaphex
871621fdfa Move implementation file_archive_file_data to archive_file.c 2016-09-19 18:26:16 +02:00
Brad Parker
fb26f3bbb7 fix divide by zero, use non-opaque type for file_archive functions 2016-09-19 12:06:07 -04:00
Twinaphex
e72a62a905 Merge pull request #3621 from frangarcj/master
(VITA) Remove Warnings
2016-09-19 13:37:34 +02:00
frangarcj
df4a1cc502 (VITA) Remove Warnings 2016-09-19 13:34:07 +02:00
Twinaphex
3642764064 (archive_file.c) fix warning 2016-09-19 13:30:29 +02:00
Brad Parker
0899cd091e fix selecting 7z archive files other than the first one 2016-09-19 02:43:09 -04:00
Brad Parker
653f5fe96c remove debug prints 2016-09-18 21:22:13 -04:00
Brad Parker
2a75b88d89 file_archive_extract_first_file can choose any file now 2016-09-18 21:22:13 -04:00
Brad Parker
162efd86dc uncompressed 7z files do not have a compressed size 2016-09-18 17:37:39 -04:00
Brad Parker
050ab56038 set archive path before extracting 2016-09-18 16:05:58 -04:00
twinaphex
d25cace9ed Add config_file_exists 2016-09-18 21:55:53 +02:00
Brad Parker
a7ffead8f6 fix more memory corruption 2016-09-18 15:20:27 -04:00
twinaphex
bd1eebc579 Nit 2016-09-18 19:07:48 +02:00
twinaphex
4a39d98bbd Nit 2016-09-18 19:06:22 +02:00
Alcaro
b7526e9c61 Kill spaghetticode, no reason to re-roll an unrolled loop like that. 2016-09-18 19:05:06 +02:00
twinaphex
7da0c4fa46 Avoid these macros 2016-09-18 19:00:39 +02:00
twinaphex
64ea2256e5 Add undef preprocessor statements 2016-09-18 18:58:35 +02:00
twinaphex
b432842b37 Uniquely name static variable 2016-09-18 18:57:18 +02:00
Brad Parker
25105ed565 upstream merge 2016-09-18 12:52:20 -04:00
Brad Parker
dbbd49f9f9 merge with master, remove alignment test code 2016-09-18 12:44:00 -04:00
twinaphex
93738fae9f CXX_BUILD fix 2016-09-18 18:34:59 +02:00
Brad Parker
f13bce4e50 - use the detected stream backend's crc32 function
- remove zlib/7zip ifdef from archive_file.c, task_content.c and task_database.c
- don't re-compute CRC from one stored in archive
2016-09-18 12:31:24 -04:00
twinaphex
c2e2d41452 C89_BUILD fixes 2016-09-18 18:28:33 +02:00
twinaphex
4e32fb0fd7 Update archive_file.c 2016-09-18 18:23:14 +02:00
Alcaro
5d2c0ba04f buh, stupid headers 2016-09-18 18:21:43 +02:00
Alcaro
62ecce7644 Fix weird types and other legacy leftovers 2016-09-18 18:09:16 +02:00
twinaphex
78e0e817dd Change wrong function prototype 2016-09-18 18:06:10 +02:00
twinaphex
91f7efc62d Add encoding_crc32 2016-09-18 17:22:12 +02:00
twinaphex
870182cd88 Turn into static function 2016-09-18 16:55:56 +02:00
Twinaphex
61c3de1f6a Griffin buildfixes 2016-09-18 16:49:09 +02:00