352 Commits

Author SHA1 Message Date
twinaphex
481ebced22 Prevent implicit memsets 2016-10-09 09:56:03 +02:00
twinaphex
5f5571e241 (libretro-common) don't do implicit memset 2016-10-08 20:04:48 +02:00
aliaspider
e9618dd6a0 (3DS) opendir with an empty string isn't returning NULL as it should. 2016-10-04 19:40:36 +01:00
twinaphex
a1c2036769 Create samples/file/nbio 2016-09-29 21:28:56 +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
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
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
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
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
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
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
Twinaphex
61c3de1f6a Griffin buildfixes 2016-09-18 16:49:09 +02:00
Brad Parker
7c29fd6c33 create 7z archive backend, enables scanning of 7z content 2016-09-18 10:31:21 -04:00
Alcaro
5aa0628ebf Kill an overflow or two. Or twelve. 2016-09-04 18:12:03 +02:00
Brad Parker
ae36b0f73d 7z extension is .7z not .zip 2016-08-30 16:31:53 -04:00
radius
cb25a9e4b8 should fix other platforms 2016-08-27 23:39:47 -05:00
radius
7092c0dbf4 windows build fix 2016-08-27 22:59:47 -05:00
Alcaro
9ffffcd249 Fix missing header 2016-08-26 18:29:41 +02:00
Brad Parker
6eebbfd8ae use const delimiter and remove pointer arithmetic 2016-08-26 11:36:52 -04:00
Twinaphex
7edf762ac6 Merge pull request #3426 from bparker06/hash_filename
correctly handle content paths containing a hash (#), fixes issue #3273
2016-08-26 17:20:43 +02:00
Brad Parker
89f9b096e7 style cleanup and fix typos 2016-08-25 21:40:37 -04:00
Brad Parker
097f326298 simplify delimiting of compressed archive filenames 2016-08-25 16:18:29 -04:00
Alcaro
0bd9ccddc1 false is most certainly not 1. 2016-08-25 12:02:42 +02:00
Brad Parker
5275c0a45d correctly handle content paths containing a hash (#), fixes issue #3273 2016-08-24 16:54:10 -04:00
Alcaro
be4e0aee1f Clean up this thing 2016-08-20 21:23:32 +02:00
twinaphex
7f3e63a18d config_set_string - prevent potential crash 2016-08-20 21:21:09 +02:00
meleu
db204afc9c changes based on the @Alcaro suggestions
Suggestions made here: https://github.com/libretro/RetroArch/pull/3407
2016-08-19 16:31:13 -03:00
meleu
c92efacebe avoid problems if ROM name has percents
As @Alcaro noted here: https://github.com/libretro/RetroArch/pull/3407
2016-08-19 10:13:33 -03:00
meleu
4e44ab99a1 added fill_str_dated_filename() function
This function creates a 'dated' filename prefixed by the string `in_str`, and concatenates extension (`ext`) to it.
2016-08-19 08:45:58 -03:00
Alcaro
4ce3683333 Fix indentation derp 2016-08-17 13:53:41 +02:00
Alcaro
43a6a667be We don't need this one. 2016-08-08 19:14:00 +02:00
twinaphex
a532bc2b0e (PS3 Salamander) Silence unused variable warning 2016-07-24 11:33:44 +02:00