Commit Graph

286 Commits

Author SHA1 Message Date
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex 7ee65bfe5d (libretro-db) Get rid of some memsets 2017-02-19 19:44:45 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex 68bb87f392 Try to fix Coverity warning 'uninitialized scalar variable' 2017-01-17 14:21:41 +01:00
twinaphex eeae9a186f Revert "Use string_is_equal"
This reverts commit 49a290c3e6.
2016-10-04 10:29:32 +02:00
twinaphex 49a290c3e6 Use string_is_equal 2016-10-04 10:24:17 +02:00
twinaphex 70d4da3e32 (libretro-db/query.c) Cleanup 2016-09-22 20:48:49 +02:00
twinaphex 1c1cac328d (libretro-db/query.c) Prevent warning 'use-after-free' 2016-09-22 20:47:26 +02:00
Higor Eurípedes 3ec31873e8 (rmsgpack.c) Fix possible double free() in rmsgpack_read()
read_buff() didn't set *pbuff to NULL after on error.
2016-09-17 21:22:49 -03:00
twinaphex dbbdc56df9 Fix libretro-db Makefile 2016-09-17 01:42:52 +02:00
twinaphex 99aae8537b Use string_is_equal/stdstring.h 2016-09-16 17:33:18 +02:00
twinaphex db6171676a Use retro_assert everywhere 2016-09-08 11:59:44 +02:00
twinaphex 414ced5901 (libretrodb) Prevent uninitialized scalar variable 2016-06-05 19:18:54 +02:00
twinaphex 169b5e7a6b (libretro-db) Cleanups 2016-06-03 07:58:15 +02:00
twinaphex 7b04375c9b Fix 'dereference after null check' 2016-06-02 20:52:30 +02:00
twinaphex ffdad57318 Fix double frees and resource leaks 2016-06-01 02:40:58 +02:00
twinaphex e8a02dd448 C89_BUILD fix 2016-05-27 06:03:38 +02:00
twinaphex 4f98cf05f4 Fix uninitialized scalar variable warnings 2016-05-26 17:32:27 +02:00
twinaphex 0f954fd4c8 Resource leaks fixes (catched by Coverity) 2016-05-26 17:26:55 +02:00
Twinaphex a816d150b1 Merge pull request #2857 from RobLoach/patch-1
Add documentation for libretro-db compilation
2016-05-26 16:17:54 +02:00
twinaphex 42971febba Fix resource leaks (pointed out by Coverity) 2016-05-24 22:01:43 +02:00
Sebastien Ronsse 2824057652 query: Fix arguments memory leak 2016-05-24 11:53:45 +10:00
twinaphex 8d4c06e133 (libretro-db) Namespace bintree and libretrodb 2016-05-24 01:07:41 +02:00
twinaphex 4717a2df64 query.c - namespace functions 2016-05-24 00:58:41 +02:00
twinaphex d5d2f7f8ee Fix resource leaks 2016-05-23 22:17:28 +02:00
twinaphex faef7b498d (Coverity) Fix some resource leaks 2016-05-23 21:28:43 +02:00
Twinaphex eeeec23c66 (OSX) Static code analyzer cleanups 2016-05-02 16:57:53 +02:00
Rob Loach 6f292fb435 Add documentation for libretro-db compilation 2016-04-14 03:56:58 -04:00
twinaphex 1b289c0f05 (libretro-common) Update 2016-03-24 04:23:17 +01:00
twinaphex e41127459e Rename 'filestream' functions 2016-03-24 04:09:25 +01:00
twinaphex 12e51eb4b5 (libretrodb) Add headers and cleanups 2016-03-21 18:16:05 +01:00
twinaphex 3720cf87e7 Rename retro_file to file_stream 2016-03-20 16:29:14 +01:00
Twinaphex 05dd8eb6b4 Merge pull request #2693 from lakkatv/master
Display genre from tgdb
2016-02-04 15:24:34 +01:00
Jean-André Santoni b1f22127b2 Display genre from tgdb 2016-02-04 21:20:56 +07:00
Twinaphex f6bcc209ab Merge pull request #2692 from lakkatv/master
Add support for TGDB Rating
2016-02-04 12:04:22 +01:00
Jean-André Santoni ab413672a9 Add support for TGDB Rating 2016-02-04 17:55:08 +07:00
twinaphex 5d27033b2e Nit 2016-02-04 11:12:57 +01:00
twinaphex 6896e85f01 Attempt to stay within 80-char width limit 2016-02-04 11:11:23 +01:00
twinaphex 0c03ee0afa Style nits 2016-02-04 11:05:34 +01:00
Jean-André Santoni 18cf2f3f88 Display Co-op in the database informations 2016-02-03 19:36:13 +07:00
twinaphex ff15d708f6 (libretro-db) Take out testlib.so from main Makefile 2016-01-26 09:36:00 +01:00
twinaphex 8527742b73 Create Makefile.lua 2016-01-26 09:34:43 +01:00
twinaphex 15946c21f9 Start moving Lua files to separate dir 2016-01-26 09:32:49 +01:00
twinaphex d7e75c9192 Simplify strcmp lines 2016-01-26 09:29:17 +01:00
twinaphex ffec5bf83d (libretro-db) Simplify bintree.c 2016-01-26 09:26:34 +01:00
twinaphex 7baa166adc Change this back 2016-01-26 08:41:07 +01:00
twinaphex 767822bb46 Get rid of leiradel's db converter files 2016-01-26 08:36:44 +01:00
aliaspider 77e22e9a79 (libretro-db) c_converter: merge list entries sharing the same key
instead of overwriting the old ones.
2016-01-26 06:28:34 +01:00
aliaspider 35e54b9777 (libretro-db) c_converter: simplify value_provider:
- use hash-key based lookups.
- allow direct editing of the the dat<->rdb mappings.
2016-01-26 03:17:22 +01:00
aliaspider 46dc864258 (libretro-db) c_converter: refactor creation/deletion of match_key
objects.
2016-01-26 02:02:37 +01:00
aliaspider a0d2272e88 (libretro-db) c_converter: use a hash based lookup in get_match_key. 2016-01-25 03:12:48 +01:00
Twinaphex 9561332295 Merge pull request #2668 from aliaspider/master
(libretro-db) c_converter: more performance improvements.
2016-01-24 05:52:38 +01:00
aliaspider 032e67bedf nit. 2016-01-24 05:46:52 +01:00
aliaspider f2267db324 (libretro-db) speed-up the binary tree search by using precomputed hash
values when comparing the keys.
2016-01-24 05:45:54 +01:00
Twinaphex 6a7674dca1 Merge pull request #2667 from aliaspider/master
(libretro-db) c_converter: improve performance when merging multiple .dat files.
2016-01-24 04:21:21 +01:00
aliaspider 7fb86f47de (libretro-db) c_converter: implement a binary search tree, improves
performance when merging multiple dat files considerably.
2016-01-24 03:16:25 +01:00
aliaspider 4696d5675f (libretro-db) cleanups. 2016-01-24 00:24:56 +01:00
twinaphex 46156cf372 (libretrodb) Silence some warnings 2016-01-23 15:23:45 +01:00
aliaspider f7c8304dc3 (libretro-db) Makefile: fix the testlib.so target 2016-01-23 07:49:51 +01:00
aliaspider 8f8b123d06 (libretro-db) c_converter: re-enable tests 2016-01-23 06:42:40 +01:00
aliaspider c95205dbd3 (libretro-db) c_converter: add support for merging multiple dat files
into a single rdb file with a match-key.
2016-01-23 06:21:52 +01:00
aliaspider 1fe10855e9 nit. 2016-01-23 04:26:19 +01:00
aliaspider 964f0f7926 (libretro-db) Makefile: add a DEBUG build option 2016-01-23 04:10:19 +01:00
aliaspider 3f66270fcb (libretro-db) c_converter: allow only one instance per key in a map
list.
2016-01-23 04:05:09 +01:00
aliaspider f8273ba5ba (libretro-db) add a dat->rdb converter in C.
still lacks match key support for merging multiple dat files.
2016-01-23 01:51:09 +01:00
aliaspider 86907fb3b7 (libretro-db) test-lib buildfix. 2016-01-23 01:33:44 +01:00
aliaspider 8207ab56c1 (libretro-db) plug memory leak. 2016-01-23 01:25:09 +01:00
aliaspider 3133b67da5 (libretro-db) cleanup Makefile. 2016-01-23 01:07:35 +01:00
aliaspider 7e4def44fd (libretro-db) prevent lua_converter from generating a random output each
run.
2016-01-23 00:57:51 +01:00
twinaphex 23e276376a Backports/rewrites wmarquesr pt. 2 2015-12-04 10:35:33 +01:00
Twinaphex 1cd1ecfc5c More C89_BUILD buildfixes 2015-11-19 13:43:48 +01:00
Twinaphex 8c66106ee7 (C89_BUILD) Some C89_BUILD buildfixes (tested on OSX/Clang) 2015-11-19 13:41:07 +01:00
twinaphex 0063da8e11 (rmsgpack.c) Silence warning 2015-11-18 02:28:47 +01:00
Higor Eurípedes f527f6466f (libretro-db) Fix build 2015-11-14 19:44:08 -03:00
Higor Eurípedes 6454f70c8d (libretrodb) Return the correct str/buf length in rmsgpack_read and read_buff 2015-11-14 16:03:49 -03:00
Higor Eurípedes eb7b46c7c1 (retro_file) Implement RFILE_HINT_MMAP 2015-11-14 16:03:49 -03:00
Higor Eurípedes 80a89bbd36 (libretro-db) Get rid of calloc() in rmsgpack_read() 2015-11-14 16:03:49 -03:00
Higor Eurípedes 533f41259a (retro_file) Implement RFILE_HINT_UNBUFFERED 2015-11-14 16:03:49 -03:00
twinaphex 325b6b3f7d Add back lua_converter.c 2015-10-25 09:15:36 +01:00
twinaphex f95e31dabd (libretro-db) Move struct definitions around 2015-10-10 10:51:12 +02:00
twinaphex e1456dce9c parser.c - symbol namespace alterations 2015-10-10 10:49:34 +02:00
twinaphex 16ec2a620e (libretro-db) Silence warning 2015-10-08 05:43:23 +02:00
Andre Leiradella 1b403105e4 fixed plain converter; added lua converter back until we're sure the plain converter is working 2015-10-07 19:28:38 -03:00
twinaphex e352f15da6 dat_converter - use plain_dat_converter 2015-10-07 15:08:54 +02:00
twinaphex bffbdabfcf (libretro-db) Heavy build fixes 2015-10-07 12:53:38 +02:00
Andre Leiradella bdd98d3ea3 translated the lua converter to plain c 2015-10-06 23:16:54 -03:00
twinaphex ba1ef9c3c2 (MSVC) Buildfixes 2015-10-02 17:57:37 +02:00
twinaphex 87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex 02a5d738fe Static code analysis cleanups 2015-09-28 23:00:22 +02:00
twinaphex 790bb0d0d6 Minor code cleanups based on static code analysis 2015-09-28 22:07:40 +02:00
twinaphex d482dba2eb More static code analysis fixes 2015-09-28 16:57:22 +02:00
twinaphex 2e57b92e19 (libretro-db) Add leiradel's C version of the dat converter 2015-09-23 10:44:41 +02:00
twinaphex f47ee55525 (libretro-db) Add rules to clean target 2015-09-22 14:50:20 +02:00
twinaphex 350dee9f51 (libretro-db) Don't use off_t 2015-09-21 17:47:02 +02:00
twinaphex e1fadcd813 (libretro-db) Cleanups 2015-09-21 17:39:06 +02:00
twinaphex 951a8903c3 (query.c) Use strlcpy
(font_renderer/freetype) Add Vera.ttf fallback
2015-09-21 16:29:05 +02:00
twinaphex 031190ed14 (libretro-db/query.c) Update this - should fix crash 2015-09-21 16:23:08 +02:00
twinaphex 3960897e74 (libretro-db) Cleanups 2015-09-21 15:37:14 +02:00
twinaphex f19366eaca (PS3/libretro-db) Avoid some warnings 2015-09-21 15:33:35 +02:00
twinaphex 753e58fee5 (libretro-db) Cleanup some headers 2015-09-21 15:31:00 +02:00
twinaphex b5a462dc38 (libretro-db) Simplify 'chomp' function 2015-09-21 15:26:42 +02:00
twinaphex b23e0abac8 (libretro-db) Turn some snprintf usage into strlcpy 2015-09-21 15:25:56 +02:00
twinaphex ab325df65d (libretro-db) Style nits 2015-09-21 11:42:41 +02:00
twinaphex 9093cd4aba (libretro-db) Use retro_endianness.h functions completely 2015-09-21 11:37:31 +02:00
twinaphex 0d16768688 (libretro-db) Start using retro_endian.h functions directly 2015-09-21 11:28:33 +02:00
twinaphex 4e398e7992 Use strlcpy everywhere 2015-09-19 15:30:15 +02:00
twinaphex 077fb3d32d (libretro-db) Replace strcpy 2015-09-19 03:46:41 +02:00
twinaphex cd878f81d1 (libretro-db/query.c) No anon unions 2015-09-18 07:03:40 +02:00
twinaphex a547fdef50 Fix libretrodb_open - change mode to RFILE_MODE_READ - use
buffered I/O by default
2015-09-18 03:25:53 +02:00
twinaphex dd58492fa6 Remove fcntl.h 2015-09-17 22:30:01 +02:00
twinaphex 82e15d1377 CLeanups/fixes 2015-09-17 20:24:49 +02:00
twinaphex 483a4264e5 (libretrodb) Silence warnings 2015-09-17 20:10:04 +02:00
twinaphex 55e54a30b4 Create retro_file, and have libretrodb use it 2015-09-17 19:58:06 +02:00
twinaphex 8ced8b00e4 (libretrodb) Small cleanup 2015-09-17 10:59:39 +02:00
twinaphex caa01d5fee (libretrodb) Move MAGIC_NUMBER out of header 2015-09-17 10:57:05 +02:00
twinaphex 1741b0c2c1 (libretrodb) rmsgpack_test.c - cleanup 2015-09-17 10:53:33 +02:00
twinaphex 802bf7ca4c (libretro-db) query.c - cleanup 2015-09-17 10:48:48 +02:00
twinaphex e3c91b7eff (rmsgpack.c) Dehardcode some magic numbers 2015-09-17 10:39:43 +02:00
twinaphex eee05742ba (libretrodb) rmsgpack.c - cleanups 2015-09-17 10:33:26 +02:00
twinaphex 6e4a6ab4b1 (libretrodb) Cleanup 2015-09-17 10:21:29 +02:00
twinaphex 2b2767017c (platform_linux.c) CXX_BUILD fix 2015-09-17 10:14:57 +02:00
twinaphex d8243945f2 libretrodb_find_entry - small cleanup 2015-09-17 09:50:34 +02:00
twinaphex da54b5dedf (libretrodb.c) Indenting nits 2015-09-17 09:47:48 +02:00
twinaphex 2ce025884f (libretro-db) libretrodb.c - cleanups 2015-09-17 09:46:26 +02:00
twinaphex 9fcb7d744e (libretro-db) Style nits 2015-09-17 09:33:24 +02:00
twinaphex c8535dce1f (libretro-db) Cleanup bintree.c 2015-09-17 09:25:06 +02:00
twinaphex ff17917a90 Convert C++ comment to C comment 2015-09-17 07:31:22 +02:00
twinaphex 29b3045d7c (libretro-db) Buildfix 2015-09-17 07:30:32 +02:00
twinaphex 3591e4a308 (libretro-db) Backport 5471e8cfa5 2015-09-17 07:28:36 +02:00
twinaphex 7ad55484ce Backport 18a4c1029d 2015-09-17 07:27:13 +02:00
twinaphex 6cc98e1fa9 (libretro-db) Backport C89 fixes 2015-09-17 07:23:36 +02:00
twinaphex 0e5b18a619 (libretrodb) Backport UINT32_C 2015-09-17 07:18:13 +02:00
twinaphex 16864b34f4 (libretro-db) Style nits 2015-09-17 07:11:49 +02:00
twinaphex aa1405fab9 (libretro-db) Style nits 2015-09-17 07:09:31 +02:00
twinaphex 7e3a83fbab (libretro-db) testlib.c - Cleanups 2015-09-17 07:04:37 +02:00
twinaphex 9d34e032b9 (libretro-db) Cleanups 2015-09-17 07:01:34 +02:00
twinaphex 139be32aaa No more anon unions 2015-09-17 06:39:17 +02:00
twinaphex b32b17f4ae Revert to last working version of libretro-db 2015-09-17 06:12:57 +02:00
twinaphex d65cc5fd2f Remove unused files 2015-09-17 06:07:37 +02:00
twinaphex 88e74f858b Remove .ycm_extra_conf.py 2015-09-17 05:58:55 +02:00
twinaphex 23abc91ee2 Remove some unnecessary files 2015-09-17 05:58:36 +02:00
twinaphex d9ce4de9af (rmsgpack_test.c) Buildfix 2015-09-17 05:40:32 +02:00
twinaphex cb9af706d1 (libretrodb) lua_common.c - buildfix 2015-09-16 23:19:44 +02:00
twinaphex 9d6146dc7a Some more MISSING_DECLS fixes 2015-09-06 14:55:42 +02:00
twinaphex 728d841047 Cleanups 2015-09-05 19:51:55 +02:00
twinaphex 3522c45067 Avoid some warnings - 'array subscript has type char' 2015-09-05 14:25:42 +02:00
twinaphex 833e8164ee Use UINT32_C 2015-07-15 02:24:11 +02:00
twinaphex 3a0d745615 (PS3) Fix libretrodb warnings 2015-06-30 16:22:51 +02:00
twinaphex 018c685b09 C89_BUILD fixes 2015-06-29 21:39:00 +02:00
twinaphex 34fc48b43a Fix CXX_BUILD 2015-06-28 16:33:05 +02:00