Commit Graph

174 Commits

Author SHA1 Message Date
twinaphex 6b48c6ee7f (database_info.c) Remove implicit memsets 2016-10-08 18:44:24 +02:00
twinaphex 13cf804a70 Fix signed/unsigned mismatch warnings 2016-09-30 08:23:24 +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 7e1639f33b Create database_info_set_type 2016-09-29 10:43:38 +02:00
twinaphex e32706581f Create database_info_get_type 2016-09-29 10:40:25 +02:00
twinaphex 24f34431ee Header include cleanups 2016-09-29 10:37:31 +02:00
Brad Parker af98ee1c8a Add CRC calculation function that works with archives with or without a path inside (first file is used if no path)
Add all archive's contents to database scan list when scanning files and directories

Allow scanning a single file that is an archive

Remove unnecessary prototypes from archive_file.h

Simplify retrieving of CRCs from archives when scanning
2016-09-25 00:15:05 -04:00
twinaphex bf64635acc Try to silence one more memory leak 2016-09-25 06:14:23 +02:00
twinaphex 3f35e10014 Solve some warnings pointed out by scan-build 2016-09-25 05:55:55 +02:00
twinaphex 8320466824 Add HAVE_CONFIG_H ifdefs 2016-09-06 23:52:33 +02:00
twinaphex e6524f961a header include cleanups 2016-09-06 01:02:25 +02:00
twinaphex 075aea2289 Header include cleanups 2016-09-06 00:56:00 +02:00
Brad Parker cc582db6fb recursively scan directories for database content, fixes issue #3139 2016-08-21 00:59:41 -04:00
twinaphex 4a7bbc4dcc Free info->genre 2016-05-24 00:33:12 +02:00
twinaphex c17315cd27 (DRM) Prevent double free and prevent dereference before NULL check 2016-05-23 22:30:01 +02:00
twinaphex 69759f5fd7 Remove logically dead code 2016-05-23 21:55:30 +02:00
twinaphex ac6362cae4 Combine list_special files 2016-03-20 17:28:24 +01:00
twinaphex 0b1b56214e Try to reduce dependence on general.h 2016-02-07 13:18:48 +01:00
Jean-André Santoni b1f22127b2 Display genre from tgdb 2016-02-04 21:20:56 +07:00
Jean-André Santoni ab413672a9 Add support for TGDB Rating 2016-02-04 17:55:08 +07:00
Jean-André Santoni 18cf2f3f88 Display Co-op in the database informations 2016-02-03 19:36:13 +07:00
twinaphex 552e78c9bc Rename file_extract to file_archive 2016-01-24 07:29:11 +01:00
twinaphex 7a55ae3765 Start updating headers for 2016 2016-01-10 04:06:50 +01:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex 9e2dc0745e Add param to dir_list_new_special 2015-10-26 21:30:58 +01:00
twinaphex 631da50dfa More static code analysis nits 2015-09-28 18:22:27 +02:00
twinaphex 1eb80f6c93 More static code analysis fixes 2015-09-28 17:18:48 +02:00
twinaphex d482dba2eb More static code analysis fixes 2015-09-28 16:57:22 +02:00
twinaphex 1fcf5ab7bd Make bin_to_hex_alloc public scope 2015-09-23 15:11:35 +02:00
twinaphex 2ce025884f (libretro-db) libretrodb.c - cleanups 2015-09-17 09:46:26 +02:00
twinaphex 8ca8b43545 Take out retro_endianness.h include out of retro_miscellaneous.h 2015-09-14 03:34:05 +02:00
twinaphex e1c1917ed5 Cleanup headers 2015-09-05 19:24:21 +02:00
twinaphex 0c6809952d Cleanups 2015-07-02 00:56:51 +02:00
twinaphex 0292f5c9b3 (libretro-db) Get rid of anon union 2015-06-26 20:33:40 +02:00
twinaphex 5c470b411c (database_info.c) Do glob query for developers 2015-06-12 18:26:39 +02:00
twinaphex 78f6f29c3a (database_info.c) Refactor some code 2015-06-12 18:20:34 +02:00
twinaphex 29c82f9360 (General) Cleanups pt. 2 2015-06-12 17:04:25 +02:00
Higor Eurípedes 43d7124c75 (database_info.c) Fix massive leak 2015-06-10 14:05:08 -03:00
Higor Eurípedes 4d23fd211c (libretro-db) Store CRC32 as uint32_t 2015-06-09 20:21:14 -03:00
twinaphex 05e6b9965e (database_info.c) Turn char * developer into string list 2015-06-10 00:53:31 +02:00
Twinaphex a50efb6ed9 Create database_info_file_init 2015-06-09 19:01:24 +02:00
Twinaphex ba0e25dd88 Rename database_info_init to database_info_dir_init 2015-06-09 18:53:18 +02:00
twinaphex 29e3f5ff66 Expand playlist format - rename it to 'lpl' 2015-06-08 23:38:03 +02:00
twinaphex 7b75fafa11 (database_info.c) Add rom_name/serial/size 2015-06-07 18:55:58 +02:00
Andre Leiradella 63e5460457 removed unneeded log in menu_entries_common_is_settings_entry; better logging of invalid key in database_cursor_iterate 2015-06-05 17:39:20 -03:00
twinaphex 27a7f66c2a Header include nits 2015-06-05 18:23:06 +02:00
twinaphex 4141a1eae8 (database_info.c) Cut down on strcmp usage 2015-06-05 10:10:40 +02:00
twinaphex fc4755bce2 (libretro-common) Move hash.c/hash.h to libretro-common 2015-06-04 21:13:13 +02:00
Twinaphex 011fa92f51 Merge pull request #1744 from leiradel/master
fixed game details not available while browsing dabases; fixed false …
2015-06-04 18:17:18 +02:00
Andre Leiradella a2b2cb0f34 fixed game details not available while browsing dabases; fixed false positives in database_cursor_iterate 2015-06-04 13:13:31 -03:00
Higor Eurípedes 936d29e703 (libretrodb) Fix leak in database_cursor_iterate() 2015-06-04 12:41:51 -03:00
Andre Leiradella e7a3dc0e73 log the label instead of the hash 2015-06-04 12:10:33 -03:00
Andre Leiradella ef1eb15f71 use hashes instead of strcmp 2015-06-04 11:23:00 -03:00
Twinaphex 030c3ce49f (libretrodb) cleanups 2015-06-03 16:26:54 +02:00
twinaphex ae41de8d57 Move djb2 to hash.c 2015-06-03 09:46:13 +02:00
twinaphex f9cb0bc1e1 (database_info.c) Cleanups 2015-06-03 08:48:20 +02:00
twinaphex e3bc375b7a Cleanups 2015-06-03 08:22:50 +02:00
Andre Leiradella 0bdaab2d89 swap series of strcmp with hash-based switch 2015-06-02 19:36:49 -03:00
Twinaphex cc2234401d Merge pull request #1728 from heuripedes/master
(database_info.c) Free value after reading it
2015-05-28 02:25:59 +02:00
twinaphex 1dc9183bb5 Use libretrodb_query_free to cleanup query state in
database_cursor_open
2015-05-28 02:24:51 +02:00
Higor Eurípedes 2a4df1ddc8 (database_info.c) Free value after reading it 2015-05-27 21:23:06 -03:00
twinaphex 99ea729d1c (database_info.c) Add some error handling 2015-05-28 02:22:50 +02:00
twinaphex 87b501efa7 Remove database_playlist_free 2015-05-26 02:08:18 +02:00
twinaphex 6294d7a360 Remove database_playlist_realloc 2015-05-26 02:06:38 +02:00
Twinaphex 1a85dfe60a (Database) Remove some unused variables 2015-05-25 10:04:54 +02:00
twinaphex da2489ad72 (database_info.c) Make functions static 2015-05-25 05:24:47 +02:00
twinaphex 3037dd8685 Refactor database_cursor_open 2015-05-25 05:09:18 +02:00
twinaphex 2f0b2460e7 Move code to database_info.c 2015-05-25 04:50:07 +02:00
twinaphex ddc0fad327 Fix database_cursor_close 2015-05-25 02:04:29 +02:00
twinaphex 57724f884c Create database_cursor_close 2015-05-25 01:56:33 +02:00
twinaphex 7322b01eb2 database_info_list_new - properly close cursor at end 2015-05-24 20:54:08 +02:00
twinaphex 39528bc74e Refactor database_cursor_iterate 2015-05-24 20:48:49 +02:00
twinaphex bcf389edab database_info_list_new - use memset 2015-05-24 20:30:05 +02:00
twinaphex ed65caba26 Rename database_open_cursor to database_cursor_open 2015-05-24 20:21:39 +02:00
twinaphex 47a2c1f3c3 Move database_cursor_iterate to database_info.c 2015-05-24 20:19:34 +02:00
twinaphex fd8c202edd Create database_info_build_query, move it to database_info.c 2015-05-24 19:36:28 +02:00
twinaphex 5bfd28c4a9 (database_info.c) Use dir_list_new_special 2015-05-24 05:04:58 +02:00
twinaphex 7696d55047 (Database) cleanup 2015-05-23 19:18:56 +02:00
twinaphex bd4267dc59 (Database) Cleanups 2015-05-05 18:43:51 +02:00
twinaphex e116ef72da Add HAVE_ZLIB ifdefs around zlib-specific code 2015-04-19 16:59:11 +02:00
twinaphex 24e79f0ceb database_info_iterate_rdl_write - cleanup 2015-04-14 09:30:13 +02:00
twinaphex bb6331874a Refactor database runloop code 2015-04-14 09:27:55 +02:00
twinaphex b7321df63c (Database) Fix database runloop on data runloop 2015-04-14 08:10:12 +02:00
twinaphex e6ba8128b8 (database_info.c) Cleanup 2015-04-11 09:04:48 +02:00
twinaphex c26804335b (libretro-common) Move file_extract.c to libretro-common 2015-03-28 20:14:19 +01:00
twinaphex f8b1a8a382 No dependencies in file_extract.c other than what is in libretro-common 2015-03-28 20:06:59 +01:00
twinaphex d1d7d89bac Style nits 2015-03-22 08:04:35 +01:00
twinaphex e6f0d366cb Go through global_get_ptr 2015-03-21 04:43:18 +01:00
twinaphex 00239a30d6 Create wrapper functions for passing a message to the runloop's
message queue
2015-03-15 02:47:23 +01:00
twinaphex 990253ac7f (Database) Move msg_queue_clear/msg_queue_push to rdl free function 2015-03-14 20:22:45 +01:00
twinaphex 795ef467ac Move msg_queue and nbio/http to runloop struct 2015-03-07 13:01:41 +01:00
neville a7fbfc0c00 (OSX PPC) Build fixes 2015-02-23 01:32:50 +01:00
twinaphex 1a1d6a0889 Change returntype of file_cb for zlib_parse_file 2015-02-23 01:23:21 +01:00
twinaphex 87edea6bd9 (MSVC) Build fixes 2015-02-16 16:51:23 +01:00
twinaphex 41d3657b5d Start creating directory content scanning - nonblocking I/O not
yet implemented
2015-02-16 07:53:27 +01:00
twinaphex b1d8d2c3e3 Start refactoring database_info_write_rdl 2015-02-16 07:25:40 +01:00
twinaphex ceb09648eb Change to ssize_t 2015-02-16 03:46:27 +01:00
twinaphex 935b112a11 Refactor read_file 2015-02-16 03:31:37 +01:00
twinaphex 2d5b4f58aa (bin_to_hex_alloc) - do return NULL in case malloc fails 2015-02-16 02:42:21 +01:00