690 Commits

Author SHA1 Message Date
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
Brad Parker
f8d51c2f86 only load compressed content if the path contains the file to extract 2016-09-22 12:52:34 -04:00
twinaphex
2c29e599e8 Revert this code back to what it was 2016-09-22 16:28:45 +02:00
twinaphex
693a9660f3 Prevent null pointer dereference 2016-09-22 16:10:51 +02:00
twinaphex
4db42db980 content_flush_save_blocks - cleanup 2016-09-22 14:40:07 +02:00
twinaphex
dad9a079c7 Rework content_flush_save_blocks/content_allocate_save_blocks 2016-09-22 14:39:13 +02:00
twinaphex
99d24d9954 Cleanup 2016-09-21 04:19:59 +02:00
twinaphex
0ec5d9aba7 Simplify task_content.c 2016-09-21 04:09:24 +02:00
twinaphex
7edc0d9ee9 Simplify load_content_into_memory 2016-09-21 04:03:31 +02:00
twinaphex
55517dbc12 Prevent warning 2016-09-21 02:17:32 +02:00
Brad Parker
b7735520f2 fix scanning of archive files 2016-09-20 15:40:29 -04:00
Brad Parker
6ac73c5655 use generic crc32 to scan files with 2016-09-20 13:34:56 -04:00
twinaphex
8b67551799 Turn dump_to_file_desprate into static function 2016-09-20 04:08:55 +02:00
twinaphex
0c86536bdc task_image.c - get rid of ifdefs 2016-09-20 04:05:16 +02:00
twinaphex
c6ab19e59c read_content_file - Improve this a little bit 2016-09-20 03:21:26 +02:00
Brad Parker
605011ffe2 use generic crc32 2016-09-19 21:18:49 -04:00
Brad Parker
992b87321a more archive paths 2016-09-19 21:06:23 -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
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
1e5d4198de Add HAVE_CONFNIG_H - task_save.c 2016-09-19 19:27:19 +02:00
twinaphex
bfeb0111f8 Fix C89_BUILD errors 2016-09-19 18:29:10 +02:00
Twinaphex
1205b12e15 remove unused variables 2016-09-19 04:23:53 +02:00
twinaphex
c133b03a63 Move task_save_files to task_save.c 2016-09-19 04:22:02 +02:00
twinaphex
8469235005 global->savefiles only accessed now from task_save.c 2016-09-19 04:18:40 +02:00
twinaphex
2277428f52 Move more global->savefiles usage to task_save.c 2016-09-19 04:09:27 +02:00
twinaphex
f91a8eacdb Move event_load_files to task_save.c 2016-09-19 04:05:44 +02:00
twinaphex
11ced5d438 relocate HAVE_CONFIG_H ifdef 2016-09-19 03:41:55 +02:00
twinaphex
2ecef082f8 Cleanups 2016-09-19 03:36:55 +02:00
Brad Parker
2a75b88d89 file_archive_extract_first_file can choose any file now 2016-09-18 21:22:13 -04:00
twinaphex
bb6bc9bd6d Merge task_save_ram/task_save_state 2016-09-19 02:57:23 +02:00
twinaphex
13d9e7c761 Deduplicate some code in task_save_ram.c/task_save_state.c 2016-09-19 02:44:00 +02:00
twinaphex
73c09f1d27 Cleanup 2016-09-19 01:12:39 +02:00
twinaphex
4106ff7f19 Reduce HAVE_COMPRESSION ifdefs 2016-09-19 00:56:58 +02:00
twinaphex
118a90b800 Move dir_check_defaults to dirs.c 2016-09-19 00:56:00 +02:00
twinaphex
534dca9ed1 Get rid of HAVE_COMPRESSION ifdef 2016-09-19 00:50:35 +02:00
Brad Parker
050ab56038 set archive path before extracting 2016-09-18 16:05:58 -04:00
twinaphex
6544b0bcd7 Get rid of HAVE_LIBRETRODB ifdefs 2016-09-18 21:50:39 +02:00
Brad Parker
a7ffead8f6 fix more memory corruption 2016-09-18 15:20:27 -04:00
Brad Parker
dc4760f5a6 fix another wrong type 2016-09-18 14:39:37 -04:00
Brad Parker
530f8ae107 fix memory corruption due to wrong userdata type 2016-09-18 14:32:29 -04:00
twinaphex
975e0f2247 C89_BUILD fix 2016-09-18 19:03:31 +02:00
Brad Parker
4fadd4a110 fix uninitialized use 2016-09-18 12:49:44 -04:00
Brad Parker
dbbd49f9f9 merge with master, remove alignment test code 2016-09-18 12:44:00 -04: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
Brad Parker
ffefe0ccac fix broken PR 2016-09-18 10:38:15 -04:00
Brad Parker
7c29fd6c33 create 7z archive backend, enables scanning of 7z content 2016-09-18 10:31:21 -04:00
Higor Eurípedes
824ded963b (task_content.c) Remove trailing whitespace 2016-09-17 21:22:49 -03:00
Higor Eurípedes
e27a85d335 (task_content.c) Fix possible double free()
content_zip_file_decompressed_handle() didn't set the handler's data
member to NULL after freeing on error. That causes problem when the function fails and
content_zip_file_decompressed() tries to free it afterwards.
2016-09-17 21:20:27 -03:00