39764 Commits

Author SHA1 Message Date
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
Twinaphex
01c30f23c6 Merge pull request #5458 from aarononeal/hotfix/scan-path-hint
Optimize scanning using directory name hint
2017-09-20 09:32:25 +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
b3a45a9899 Enable HAVE_FLAC and HAVE_CHD for Android 2017-09-19 21:19:34 +02:00
Twinaphex
ee06a8f175 Merge pull request #5447 from bkoropoff/scanning2
More scanning rework
2017-09-19 15:46:04 +02:00
twinaphex
105b98b837 Rename gl_legacy_renderchain to gl2_renderchain 2017-09-19 15:06:49 +02:00
twinaphex
2fb68c7007 (D3D9 HLSL) Cleanups 2017-09-19 15:02:51 +02:00
twinaphex
0ddc349557 (D3D9 HLSL) Cleanups 2017-09-19 14:58:56 +02:00
twinaphex
52970c773b Cleanup 2017-09-19 14:55:18 +02:00
Twinaphex
406aa2a1e7 Merge pull request #5456 from aarononeal/hotfix/archive-scanning
Fix archive scanning
2017-09-19 14:47:54 +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
Brad Parker
2c45f0c31e don't confuse libflac PACKAGE_VERSION with RetroArch's 2017-09-18 20:21:37 -04: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
Brian Koropoff
93d05665c2 database_info: prioritize scanning cue/gdi files
Scan them before the tracks so we can avoid scanning large
files we don't need to.
2017-09-18 09:03:43 -07:00
Brian Koropoff
46e78e9d1b task_database: fix parsing CUEs with one track 2017-09-18 09:03:43 -07:00
Brian Koropoff
c6c090052e task_database: fix memory leak 2017-09-18 09:03:43 -07:00
Brian Koropoff
6c1044a699 task_database: support GDI files 2017-09-18 09:03:43 -07:00
Brian Koropoff
70ff0aa0c1 msg_hash: support GDI files 2017-09-18 09:03:43 -07:00
Brian Koropoff
7061cb14fb chd_stream: support CHDs from GDI files 2017-09-18 09:03:43 -07:00
Brian Koropoff
fa6d0fac67 task_database: more scanning rework
- Use the primary (largest data) track for CRC identification, as it
  seems least likely to be shared among multiple discs
- CRC the primary track when importing a loose .cue file.
- If multiple tracks are in the same file, CRC the correct chunk
2017-09-18 09:03:43 -07:00
Brian Koropoff
5b20c13f92 chd_stream: support PRIMARY special track 2017-09-18 09:00:39 -07:00
Brian Koropoff
edf90d250f task_database: fix memory leak in error path 2017-09-18 09:00:39 -07:00
twinaphex
770640be58 Fix more dereference before NULL checks 2017-09-18 16:40:38 +02:00
twinaphex
fa7a792180 Fix dereference before NULL check 2017-09-18 16:39:28 +02:00
twinaphex
60c7f8e35f Fix 'pointer to local outside scope' 2017-09-18 16:35:31 +02:00
twinaphex
c90307c585 Buildfix 2017-09-18 16:22:27 +02:00
twinaphex
e931bad7d1 Cleanups 2017-09-18 16:18:25 +02:00
twinaphex
49cf80db10 Fix resource leaks 2017-09-18 15:57:05 +02:00
twinaphex
21ff58f66e Cleanups 2017-09-18 12:55:11 +02:00
twinaphex
bda1aefccc Add rules to Griffin 2017-09-18 12:27:11 +02:00
Twinaphex
6648ebed0d Silence some warnings 2017-09-18 11:56:59 +02:00
Twinaphex
5c6ad1645d Merge pull request #5449 from bkoropoff/serial-info-crash
menu_displaylist: don't crash on serial-only database entries
2017-09-18 10:29:45 +02:00
Twinaphex
8b666ff73d Merge pull request #5450 from bkoropoff/windows-chd
CHD support on Windows
2017-09-18 10:29:28 +02:00
Brian Koropoff
a536532e30 Unleash the compressed hunks of data 2017-09-17 22:04:29 -07:00
Brian Koropoff
3b7a202934 Fix libchdr build on Windows 2017-09-17 22:04:11 -07:00
Brian Koropoff
f1eaf787ec Fix libFLAC build in Windows 2017-09-17 22:03:38 -07:00
Brian Koropoff
1bbb7aff08 menu_displaylist: don't crash on serial-only database entries 2017-09-17 21:31:42 -07:00
Twinaphex
23fe08cb4b Merge pull request #5446 from fr500/master
only set_controller=true for the number of ports the core supports
2017-09-17 20:21:31 +02:00
radius
971458c039 only set_controller=true for the number of ports the core supports 2017-09-17 12:44:17 -05:00
twinaphex
e35eeb8a42 Cleanups 2017-09-17 19:06:58 +02:00
twinaphex
9cfc41d96c Fix warnings 2017-09-17 18:53:58 +02:00
twinaphex
4e71b75a7d include retro_inline.h 2017-09-17 18:38:51 +02:00
twinaphex
f67641c52c (libchdr) Can't have C++ comments
(config.params.sh) Have to disable FLAC for now; still doesn't
compile for Windows due to fseeko/ftello errors
2017-09-17 18:36:55 +02:00
Twinaphex
1d3a2d7002 Merge pull request #5445 from bkoropoff/scanning
Make scanning support .chd files
2017-09-17 18:29:09 +02:00