Commit Graph

203 Commits

Author SHA1 Message Date
twinaphex
c7c4b723d6 Move path_file_exists to filestream and do away with filestream
dependencies in file/file_path
2017-12-14 20:05:46 +01:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Brian Koropoff
b668193923 scanner: allow matching archives by member
This allows more flexible detection of content packaged as multiple
compressed files (e.g. MAME).
2017-11-17 16:53:49 -08:00
twinaphex
35376a7961 Cleanups 2017-09-29 22:03:26 +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
twinaphex
4b2abc3334 Cleanups 2017-09-11 00:12:26 +02:00
twinaphex
a2317bf1e1 (core_info.c) Reduce stack size usage 2017-09-09 21:55:35 +02:00
twinaphex
6af5bd01bf Merge retro_stat and file_path 2017-06-16 15:00:11 +02:00
twinaphex
bf3188eac4 Combine runloop_ctl and rarch_ctl 2017-05-15 05:06:23 +02:00
twinaphex
42ebe7a7ad Merge runloop.c and retroarch.c 2017-05-11 09:11:46 +02:00
twinaphex
e6ab06a701 Move path variables 2017-04-29 00:39:29 +02:00
twinaphex
0369fd6578 Try to silence potential resource leak pointed out by Coverity 2017-03-24 01:51:29 +01:00
twinaphex
8c89ec158c Update copyrights 2017-03-22 03:09:18 +01:00
twinaphex
71b0666ec5 Silence another Coverity warning 2017-03-05 20:06:36 +01:00
twinaphex
0b7ef78122 Simplify core_info_database_supports_content_path 2017-03-05 18:47:02 +01:00
twinaphex
57e0e30600 Update core_info.c 2017-02-28 11:16:05 +01:00
twinaphex
ef1323bbfd Prevent explicit NULL dereference 2017-02-28 10:47:24 +01:00
twinaphex
5eec1c1f39 Get rid of forward NULL 2017-02-21 21:13:46 +01:00
Brad Parker
d8e38bedf0 fix heap corruption in core info extension list 2017-02-14 13:50:42 -05:00
radius
5ea570c978 add zip and 7z always to the list of supported extensions 2017-02-10 23:58:58 -05:00
Twinaphex
859eff1f0f Merge pull request #4508 from aliaspider/master
(WiiU) add core loading.
2017-01-25 20:34:37 +01:00
aliaspider
8f88d8fb4d (WiiU) implement the missing requirement for core loading: exec,
exitspawn, set_fork and salamander.
2017-01-25 19:52:31 +01:00
twinaphex
121fb3b737 core_info.c - use strlcpy 2017-01-25 02:39:52 +01:00
twinaphex
c162f21f9a Prevent another memory leak 2017-01-13 18:35:20 +01:00
twinaphex
a859d2dc3f Prevent memory leak 2017-01-13 18:24:24 +01:00
twinaphex
b20c9d870b Add block_frames member to audio driver init function;
be more prudent with strdup
2017-01-11 07:25:42 +01:00
twinaphex
2156bb43a1 Be more careful with allocation and assignment 2016-12-25 01:46:32 +01:00
twinaphex
58716e5f3c Silence some Coverity warnings 2016-12-21 01:34:28 +01:00
Twinaphex
b4c33a05f6 Remove warning about unused variable 2016-12-15 08:31:27 +01:00
twinaphex
d58a3a868c (core_info.c) Small cleanups 2016-12-14 16:10:48 +01:00
twinaphex
05aae1fdb4 core_info.c - cleanups 2016-12-14 13:47:22 +01:00
twinaphex
f303dd9e70 (core_info.c) Better error handling for config file functions 2016-12-14 13:15:23 +01:00
twinaphex
43d06591c4 Silence some Coverity errors 2016-12-14 12:55:12 +01:00
twinaphex
f4d7b2eaaa (core_info.c) Cleanups 2016-12-14 11:47:04 +01:00
twinaphex
bcccc27205 (core_info.c) CLeanups 2016-12-14 01:23:08 +01:00
twinaphex
c501ee6057 (core_info.c) Cleanups 2016-12-14 01:16:10 +01:00
twinaphex
fb5c58d65f Simplify core_info_get_name 2016-12-14 01:08:32 +01:00
twinaphex
c8b1aacefe Optimize core_info_get_name 2016-12-14 01:07:48 +01:00
twinaphex
502d3ffa3a (core_info.c) Make code more robust 2016-12-14 00:55:05 +01:00
twinaphex
b1fc261f9a Buildfix 2016-11-28 02:24:23 +01:00
radius
8f4d6b8784 only block loading when firmware is required 2016-11-27 19:50:41 -05:00
radius
9505602675 Prevent loading content when firmware is missing 2016-11-27 19:25:38 -05:00
Lioncash
149522f23c core_info: Fix a leak in core_info_database_supports_content_path 2016-11-25 17:38:54 -05:00
Brad Parker
d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
Brad Parker
fec6ed0964 remove zip requirement for archives downloaded from network, same for detecting cores for files when loading archive with core 2016-10-13 15:04:26 -04:00
Brad Parker
a800ab68ee limit archive path exception only to databases that actually support archives 2016-10-12 16:16:39 -04: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
Francisco José García García
b94bb2a8a9 (VITA) Add Salamander dist 2016-10-10 10:49:09 +02:00
aliaspider
77e8cf8bb7 (3DS) implement core loading / salamander 2016-10-08 01:47:15 +01:00
Brad Parker
fc1f2cdcf4 only scan the content databases that support the file's extension 2016-10-03 16:09:10 -04:00