Commit Graph

216 Commits

Author SHA1 Message Date
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 6c1044a699 task_database: support 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
twinaphex 49cf80db10 Fix resource leaks 2017-09-18 15:57:05 +02:00
Twinaphex 6648ebed0d Silence some warnings 2017-09-18 11:56:59 +02:00
Brian Koropoff 5a3969d4fa task_database: rework cd scanning
Support chd files.  Fall back to using the CRC32 of the last track
of CDs if a serial number is not available.  This requires new
database files, but is necessary for chd scanning to work.
2017-09-17 02:11:07 -07:00
twinaphex b51a19da5c Fix memory leak 2017-09-12 05:26:59 +02:00
twinaphex c1c42cac6b (task_database.c) Reduce stack usage 2017-09-12 05:00:22 +02:00
Aaron Oneal 48550235d5 Fix slow content scans.
The check for unsupported content was reversed which was causing files to be checked against every database. Correcting this improves performance drastically. This appears to have been broken since at least commit #fc1f2cdcf.
2017-09-06 20:51:37 -07:00
twinaphex 50b838d8ed Cleanups 2017-07-30 10:11:41 +02:00
Rob Loach bbb2a7d6f4
Add serial detection for Wii 2017-07-29 23:23:05 -04:00
Brad Parker 5733d8ebd5 move content list builder into scanner task with progress, fixes menu freeze with large playlists 2017-07-09 00:44:02 -04:00
aliaspider 634de19dc9 (WiiU) enable libretrodb. 2017-05-22 06:07:27 +01:00
aliaspider eede1a4978 no need to swap endianess here. 2017-05-22 05:26:13 +01:00
twinaphex 8eca08c6ac Start using string_is_equal_fast/string_is_not_equal_fast macros
instead of straight memcmp
2017-05-16 03:20:59 +02:00
twinaphex 80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
twinaphex 72bd83b8d1 Cleanups to tasks_internal.h 2017-05-13 18:08:37 +02:00
twinaphex 42ebe7a7ad Merge runloop.c and retroarch.c 2017-05-11 09:11:46 +02:00
twinaphex f9bc2d3783 Use memcmp instead of string_is_equal where possible for
better performance
2017-04-21 22:47:15 +02:00
Jean-André Santoni ff575a3460 PCE-CD magic number detection 2017-03-07 01:16:58 +01:00
twinaphex 10bf8d4a8a Backport enlarge char buffers 2017-02-27 09:28:38 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex a3f5590f41 remove dependence on configuration.h inside task_database.c 2017-01-18 01:23:24 +01:00
Twinaphex 2834370e09 Revert "allow serial scanner to match PBP" 2017-01-07 05:52:12 +01:00
radius 1866706c75 allow serial scanner to match PBP 2017-01-06 22:05:55 -05:00
twinaphex 6faabfeebf Don't use settings struct from thrading functions 2016-12-31 07:03:29 +01:00
Brad Parker 41f40acfc4 guard task struct read/writes across threads with a mutex, fixes several data races found by ThreadSanitizer and helgrind 2016-12-29 00:54:12 -05:00
twinaphex 958a028b0a (task_database.c) Remove unused message queue 2016-12-24 20:36:37 +01:00
twinaphex 77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
twinaphex c8dc0fef0c Cleanups - turn some functions into static functions and move
to task_database.c
2016-12-20 21:08:31 +01:00
twinaphex d0cc1afe0a (tasks) Style nits 2016-12-04 19:12:35 +01:00
Jean-André Santoni 6cc14a4fb9 Add missing copyright mention on some files 2016-10-27 18:17:43 +02:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
Francisco José García García 8e329a2072 Merge pull request #3781 from frangarcj/master
(VITA) Working scanning content
2016-10-13 17:51:13 +01:00
Francisco José García García 4c19543427 (VITA) Workaround for scanning content 2016-10-13 18:00:40 +02:00
twinaphex a4b90bcede Set msg[127] = 0 2016-10-13 13:33:51 +02:00
Brad Parker 88c8c49ef8 skip scanning of compressed files within archives if the core attached to this database supports archive files themselves 2016-10-12 16:14:00 -04:00
twinaphex 481ebced22 Prevent implicit memsets 2016-10-09 09:56:03 +02:00
twinaphex 1388220866 (tasks) Don't do implicit memsets in crucial performance-oriented code 2016-10-08 18:31:43 +02:00
Brad Parker fc1f2cdcf4 only scan the content databases that support the file's extension 2016-10-03 16:09:10 -04:00
twinaphex c8dc941c42 iso_get_serial - cleanup 2016-09-29 11:10:52 +02:00
twinaphex a304b42f73 (task_database.c) Cleanup 2016-09-29 11:07:56 +02:00
twinaphex 1842e35b8d Cleanups 2016-09-29 11:03:59 +02:00
twinaphex cfe91125db Create database_info_get_current_element_name 2016-09-29 10:59:50 +02:00
twinaphex b286703a81 Cleanup task_database_handler 2016-09-29 10:55:50 +02:00
twinaphex 7e1639f33b Create database_info_set_type 2016-09-29 10:43:38 +02:00
twinaphex fc3c17547e Use database_info_get_type 2016-09-29 10:41:30 +02:00
twinaphex 24f34431ee Header include cleanups 2016-09-29 10:37:31 +02:00
Twinaphex 94b0dd36ab remove unused variable 2016-09-25 15:51:46 +02:00