Commit Graph

355 Commits

Author SHA1 Message Date
twinaphex 76f4cf5cc5 Start using STRLCAT_CONST/STRLCAT_CONST_INCR/STRLCPY_CONST 2019-09-20 20:39:34 +02:00
twinaphex db624a7c99 Start cleaning up the rather messy manual assignment 2019-09-20 02:03:26 +02:00
twinaphex ab515daa0c Try to get rid of file_path_str 2019-09-18 18:12:57 +02:00
twinaphex ed77d46cc9 Cut down on some strlcat usage where not necessary 2019-09-18 04:58:52 +02:00
Twinaphex 753be84ae0 (Apple) Silence some warnings 2019-09-14 17:15:30 +02:00
twinaphex 96ba8b6928 Cleanups 2019-08-10 04:34:15 +02:00
Brad Parker 80cb762cdb samples/tasks/database buildfix 2019-07-29 16:30:53 -04:00
twinaphex 95c5d22c5a Split up mmdevice enumeration string list to separate
file
2019-07-25 05:42:23 +02:00
Brad Parker 2db48d39f4 fix comparison 2019-07-23 23:05:09 -04:00
Brad Parker 61ab9249fc add "required hw api" to core info files, block content loading if core is incompatible with current graphics API/version 2019-07-23 22:44:45 -04:00
twinaphex c85707336b Fix LGTM warning - declaration hides parameter 2019-07-18 19:07:27 +02:00
twinaphex 41a2fabb4e Create config_file_new_from_path_to_string 2019-07-18 12:03:50 +02:00
twinaphex a465971556 core_info_get_display_name - use config_file_new_from_string 2019-07-18 00:43:03 +02:00
twinaphex 319e708738 core_info_list_iterate - use config_file_from_string 2019-07-16 19:01:43 +02:00
jdgleaver 0be44e57ad Overhaul default playlist core association 2019-06-26 17:42:26 +01:00
twinaphex d9b4afe04a Quick buildfix 2019-05-10 18:34:18 +02:00
twinaphex 74388d8490 Remove string_concat 2019-05-10 18:05:58 +02:00
twinaphex b270ea6b79 Revert "(MSVC 2003) core_info - remove all_ext from heap - fixes crash with MSVC2003"
This reverts commit 50a57b03a1.
2019-05-10 08:31:18 +02:00
twinaphex 50a57b03a1 (MSVC 2003) core_info - remove all_ext from heap - fixes crash with MSVC2003
and makes for easier code
2019-05-05 14:23:29 +02:00
twinaphex cce4aa9c86 (core_info.c) Use string_concat for constants 2019-05-01 00:21:50 +02:00
twinaphex bc2bdd5734 config_file_read not needed anymore 2019-04-30 13:37:10 +02:00
Twinaphex 1819584d74 (General) Fix some warnings
(OSX) Add HAVE_STB_FONT
2019-04-30 11:38:47 +02:00
twinaphex 3b24565b66 Be more careful with dangling pointer 2019-04-28 10:17:03 +02:00
twinaphex 2b5b67d663 Simplify core_info code 2019-04-28 05:15:21 +02:00
twinaphex 5044537625 (core_info.c) Small opts for core_info.c 2019-04-27 14:23:07 +02:00
twinaphex 2c47d571aa Use path_is_valid instead of filestream_exists when we only
need to know if a file exists on the filesystem
2019-04-27 14:01:50 +02:00
twinaphex 3e72c502a8 strlen optimizations :
- use STRLEN_CONST for constant strings, translates to sizeof
which should be computed at compile-time
- found some places where we are needlessly calling strlen two
times instead of just once
2019-04-27 04:21:10 +02:00
twinaphex 7201d0bf22 Revert "Use path_is_valid instead of filestream_exists where possible -"
This reverts commit 88e3abd6fd.
2019-04-26 13:46:21 +02:00
twinaphex 88e3abd6fd Use path_is_valid instead of filestream_exists where possible -
stat should be faster than fopen
2019-04-26 13:33:25 +02:00
twinaphex 16e2db25c4 Prefer config_file_read instead of config_file_new when we are
sure the path cannot be a directory path
2019-04-22 01:23:50 +02:00
twinaphex 69168ec6bc Core info list iteration was calling path_stat two times on the same
paths - unnecessary file I/O is an issue with UWP/WinRT so let's cut
this down to only one path_stat. config_file_read function created -
acts the same as config_file_new except it doesn't check if the path
provided is actually a directory, which in turn would lead to another path_stat call
2019-04-22 01:13:19 +02:00
twinaphex e5800cf733 Cleanups 2019-04-21 05:47:24 +02:00
jdgleaver 8a2cd64889 Always use core display name when populating playlists 2019-03-07 16:54:46 +00:00
jdgleaver 9bcc80320d Core Info: Use basename when searching core paths (fixes issues when core directory is on a symlinked filesystem) 2019-03-06 16:42:09 +00:00
Brad Parker 4f0d61a2ac update copyright 2019-02-22 19:13:36 -05:00
twinaphex c98b2e2292 Buildfixes and more static code analysis warning fixes 2019-01-10 22:24:43 +01:00
twinaphex 9c5c0aea58 Start replacing WinRT ifdefs so that Windows Phone 8 can be detected
too
2019-01-02 13:30:58 +01:00
krzys-h 48d82929ff (UWP) Add support for loading cores from optional packages 2019-01-01 16:21:47 +01:00
Francisco Javier Trujillo Mata 0880bd00b0 PS2 is compiling with null drivers 2018-11-09 22:40:50 +01:00
Jesse Bryan f6a0b09e7d general: renamed rpcname to systemid 2018-08-21 09:41:16 -05:00
Jesse Bryan c276f9349a discord: remove hardcoded values and use new attribute 2018-08-20 20:55:44 -05:00
Brad Parker 9f60a6d17c fix Core Information not appearing after 73f2710 2018-08-15 16:11:05 -04:00
Brad Parker a1aefc901c Qt WIMP GUI 2018-04-30 14:33:05 -04:00
twinaphex c9e48cd9de Cleanups / get rid of more dependencies 2018-04-10 04:31:19 +02:00
twinaphex 6f0fc2426d (database_info/task_database) Get rid of list_special dependencies 2018-04-10 04:13:45 +02:00
twinaphex 3016edce0a Move retroarch.h dependencies out of core_info.c 2018-04-10 04:00:01 +02:00
twinaphex 8ca8f92aeb No more configuration.h dependencies in core_info.c 2018-04-10 03:02:10 +02:00
twinaphex 8b4b5e88ce Update 2018-04-09 22:20:51 +02:00
twinaphex 86c826350e Start moving dependencies out of certain files 2018-04-09 22:18:25 +02:00
twinaphex c830d0273d (core_info.c) cleanup memory allocations 2018-02-04 23:07:24 +01:00
twinaphex 58d6918533 Silence Coverity warning 2018-02-02 21:48:55 +01:00
twinaphex 2f55c5724f Don't keep grabbing config_get_ptr inside loop 2018-02-01 11:28:45 +01:00
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
twinaphex 3d04dade8f Remove some HAVE_ZLIB ifdefs 2016-09-19 03:54:57 +02:00
twinaphex 5aaebcfa62 Header include cleanups 2016-09-08 06:07:43 +02:00
twinaphex 264f03d4f2 Cleanup 2016-07-20 02:58:26 +02:00
twinaphex 84af36c8e9 Fix this 2016-07-20 02:57:25 +02:00
twinaphex 397f82c9f5 Get rid of configuration.h dependency in list_special.c 2016-07-18 07:15:58 +02:00
twinaphex 519e4e038a Update core_info_find 2016-07-09 21:51:16 +02:00
twinaphex b593e73896 Use fill_pathname_base_noext 2016-06-28 13:10:34 +02:00
twinaphex e162882406 (core_info.c) Use file_path_str 2016-06-28 08:57:01 +02:00
twinaphex 32c4f74f7d More translatable strings 2016-06-20 04:23:00 +02:00
twinaphex 858aae10cb Fix unchecked return value warnings 2016-06-02 23:00:11 +02:00
twinaphex ffdad57318 Fix double frees and resource leaks 2016-06-01 02:40:58 +02:00
twinaphex a98616b45b Fix explicit NULL dereferenced/dereference before null check warnings 2016-05-26 17:47:21 +02:00
twinaphex 4f98cf05f4 Fix uninitialized scalar variable warnings 2016-05-26 17:32:27 +02:00
twinaphex bfa6f49ae6 Fix logically dead code warnings 2016-05-24 22:12:51 +02:00
twinaphex d5d2f7f8ee Fix resource leaks 2016-05-23 22:17:28 +02:00
twinaphex 5e5bb8e39b Remove logically dead code 2016-05-23 21:48:50 +02:00
twinaphex 2855526566 core_info.c 'logically dead code' fix 2016-05-23 21:48:24 +02:00
twinaphex 7ba97e8703 Remove core_info_ctl 2016-05-09 18:11:17 +02:00
twinaphex 65dec874a8 Move some path settings 2016-04-28 19:52:25 +02:00
twinaphex 7dffc6286b Internally change directory settings 2016-04-28 19:26:02 +02:00
twinaphex ac6362cae4 Combine list_special files 2016-03-20 17:28:24 +01:00
twinaphex c7e13e2bcd (libretro-common) Rename file_archive to archive_file 2016-03-20 16:14:40 +01:00
twinaphex 93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +01:00
twinaphex e9a0aba85b Silence bunch of warnings and fix an error 2016-03-04 19:42:30 +01:00
twinaphex 36b420ec17 Revert "Remove core_info_list_num_info_files"
This reverts commit 9d96e9e452.
2016-02-11 07:20:04 +01:00
radius 8a043a9c6d Revert "Cleanups"
This reverts commit f7d47bb956.
2016-02-10 21:50:54 -05:00
twinaphex 76b726d154 Cleanup 2016-02-07 19:02:09 +01:00
twinaphex 81c4160a5a Cleanups 2016-02-07 19:01:17 +01:00
twinaphex eb33197a9b Cleanup core_info_get_name - reuse core_info_list_iterate 2016-02-07 18:32:56 +01:00
twinaphex c7b9625460 Create core_info_list_iterate 2016-02-07 18:27:27 +01:00
twinaphex f7d47bb956 Cleanups 2016-02-07 18:19:58 +01:00
twinaphex d384cb351f Cleanup 2016-02-07 17:40:42 +01:00
twinaphex a1ee49bf1d Cleanups 2016-02-07 17:39:10 +01:00
twinaphex 496a69c796 Cleanup 2016-02-07 17:35:52 +01:00
twinaphex fac18641cd Turn function static 2016-02-07 17:34:22 +01:00
twinaphex d3b9356958 Create CORE_INFO_CTL_LOAD 2016-02-07 17:26:10 +01:00
twinaphex b647e8186d Create CORE_INFO_CTL_LIST_UPDATE_MISSING_FIRMWARE 2016-02-07 16:19:02 +01:00
twinaphex 452df47c14 Remove core_info_list_get_all_extensions 2016-02-07 16:10:42 +01:00
twinaphex 9d96e9e452 Remove core_info_list_num_info_files 2016-02-07 16:03:53 +01:00
twinaphex 04591cfc5c Header cleanups 2016-02-07 13:10:04 +01:00
twinaphex ff90a13a5e Turn core_info_does_support_any_file static 2016-02-07 12:59:50 +01:00
twinaphex 418fb62cfc Cleanups 2016-02-07 12:55:21 +01:00
twinaphex 6576348198 Turn core_info_does_support_file static 2016-02-07 12:53:45 +01:00
twinaphex bd56e0c02e Turn some functions static 2016-02-07 12:51:45 +01:00
twinaphex 487b295182 Turn core_info_find into static function 2016-02-07 02:53:00 +01:00
twinaphex 9e9723e721 Create CORE_INFO_CTL_FIND 2016-02-07 02:50:16 +01:00
twinaphex 490c023fe3 Add core_info_ctl actions 2016-02-07 02:37:57 +01:00
twinaphex 7a01fb1616 Create CORE_INFO_CTL commands 2016-02-07 02:24:08 +01:00