Commit Graph

1286 Commits

Author SHA1 Message Date
Alcaro
dc4c2cd6d9 Wipe out a buncha warnings and pointless ifdefs (some warnings will remain until #5497 is fixed) 2017-10-03 00:26:29 +02:00
Alcaro
b97853a536 Rename STRING_REP_ULONG to STRING_REP_USIZE 2017-10-02 22:51:51 +02:00
Brad Parker
7a6d2cb5e6 set list to NULL after free in case autoconfig directory is empty 2017-09-30 19:03:39 -04:00
twinaphex
45ce8bf773 Cleanups 2017-09-30 20:45:06 +02:00
twinaphex
de6b1bcbf0 Fix another Coverity error 2017-09-30 17:11:51 +02:00
twinaphex
73d1539bb0 Fix another Coverity error 2017-09-30 17:08:42 +02:00
twinaphex
2a8b74eeb9 Fix some Coverity errors 2017-09-30 16:52:41 +02:00
twinaphex
f61b9e1747 Cleanup 2017-09-30 08:24:01 +02:00
twinaphex
063343e538 Simplify this 2017-09-30 07:29:19 +02:00
Brad Parker
c856a36a58 more null checks 2017-09-30 01:18:40 -04:00
twinaphex
00ea9be8fc Be safer 2017-09-30 06:38:53 +02:00
twinaphex
ff926439ac Fix this up 2017-09-30 06:29:07 +02:00
twinaphex
5fd05c6b56 There were some unused variables 2017-09-30 06:25:41 +02:00
twinaphex
eae2217c6d Cleanup 2017-09-30 06:23:23 +02:00
twinaphex
3040d1da36 (task_database.c) Simplify conditionals 2017-09-30 06:21:38 +02:00
twinaphex
f323168251 Simplify conditionals 2017-09-30 06:08:09 +02:00
twinaphex
dc2664a4ef Reorder variables 2017-09-29 22:58:32 +02:00
twinaphex
57ded65189 (task_save.c) Use malloc 2017-09-29 22:40:31 +02:00
twinaphex
862cf48108 (task_image.c) Don't use calloc 2017-09-29 22:36:48 +02:00
twinaphex
127d98fb68 Rewrite path from nbio struct 2017-09-29 22:16:17 +02:00
twinaphex
bae31a318d Prevent memory leak 2017-09-29 21:32:05 +02:00
twinaphex
3490c3dbc5 Cleanups 2017-09-29 20:51:20 +02:00
twinaphex
3090f3ff3a (task_database.c) Rewrite char arrays 2017-09-29 20:47:54 +02:00
twinaphex
819e3fb02a Initialize struct 2017-09-29 17:06:38 +02:00
Twinaphex
f713a30705 Update task_autodetect.c 2017-09-29 15:08:09 +02:00
twinaphex
5951bed07d Make stdin an option 2017-09-29 06:16:35 +02:00
twinaphex
f34250e38e Buildfix 2017-09-27 23:55:54 +02:00
twinaphex
e7d41f6ea7 Cleanup 2017-09-27 23:54:31 +02:00
twinaphex
fcf6228dce Turn into char pointer array 2017-09-27 20:11:44 +02:00
twinaphex
b79f95668b Turn it into char pointer array 2017-09-27 20:08:37 +02:00
twinaphex
6cf6d46e4b Try silencing more warnings - do something with return value 2017-09-26 03:51:50 +02:00
twinaphex
cc8e897222 C89_BUILD fixes 2017-09-22 05:12:26 +02:00
twinaphex
e74da12d26 Fix another memory leak 2017-09-22 00:03:40 +02:00
twinaphex
50d48139a3 Fix some more memory leaks 2017-09-21 23:38:29 +02:00
twinaphex
1a77c383b9 Fix plethora of memory leaks again 2017-09-21 21:33:13 +02:00
twinaphex
0f80e31382 task_database.c - cleanups 2017-09-21 19:57:10 +02:00
Twinaphex
cff35f3611 Fix warning - wrong type used 2017-09-21 19:24:42 +02:00
Brian Koropoff
2cfedab339 task_database_cue: only return error when errno would be set
On a short read, errno will be 0, and returning 0 without
setting system_name will cause a crash later.  Just continue
to the next magic number instead.
2017-09-20 21:24:59 -07:00
twinaphex
0002912328 Change size of variables 2017-09-20 16:35:18 +02:00
twinaphex
808a723969 Fix memory leaks 2017-09-20 12:18:31 +02:00
twinaphex
ac732ecdb0 Fix memory leak 2017-09-20 12:13:44 +02:00
twinaphex
37715114ae Cleanup 2017-09-20 09:55:53 +02:00
Aaron Oneal
4a929bd8e2 Optimize scanning using directory name hint
As discussed in issue #5440, directory scans are slow when compressed files must be checked against multiple databases. This commit adds support to hint to the scanner that a particular database should be used so that only a single scan is required. If the directory name being scanned matches the database name then that single database is selected.
2017-09-19 16:58:28 -07:00
Aaron Oneal
6ac4486f4d Fix typo from 9a76a93ea that broke the build 2017-09-19 16:49:45 -07:00
Twinaphex
9a76a93ea8 OSX buildfixes/cleanups 2017-09-19 21:37:51 +02:00
twinaphex
e8f39f004e MSVC buildfixes 2017-09-19 21:29:28 +02:00
Twinaphex
ee06a8f175 Merge pull request #5447 from bkoropoff/scanning2
More scanning rework
2017-09-19 15:46:04 +02:00
Aaron Oneal
fb8fe84684 Fix archive scanning
Archive scans were broken for cores like Atari 5200 and Commodore 64 because archive contents were skipped if a core reported it supported compressed files. The problem is, it's a false assumption that just because a core supports compressed files that the content database contains CRCs for compressed files.

Instead of adding the contents of every compressed file to the scan list ahead of time, the patched logic now checks for the CRC of the archive itself as it always has but then adds the archive contents to the scan list if the archive itself is no match. This maintains the logic of adding only the archive if the core supports compressed files and the archive CRC matches but also allows for deeper content scans when there is no match.

The patch also removes `core_info_unsupported_content_path` as it was redundant with existing `core_info_database_supports_content_path` logic.
2017-09-18 23:15:28 -07:00
Brian Koropoff
d4beeeda33 task_database: skip serials for the right file type! 2017-09-18 09:03:43 -07:00
Brian Koropoff
84edc8ffb0 task_database: prune files referenced from cue/gdi files
Since we use cue/gdi files to find the right track file to
scan, don't bother scanning them separately.
2017-09-18 09:03:43 -07:00