Commit Graph

286 Commits

Author SHA1 Message Date
ZornTaov 450feb46cc
Update libretro-db/README.md
Looking through libretro-db/query.c I discovered the b prefix to strings that turns the string into binary, this is useful for searching up hexadecimal hashes.  This information was not described in the documentation, so I've added it before the Names only search to group with the other find commands, though it will work with get-names as well.
2019-07-18 14:02:17 -07:00
Rob Loach 03d0462fa4
libretrodb: Update the whitespace 2019-06-25 01:24:46 -04:00
Rob Loach 1015c0cd08
docs: Fix libretro-db docs
The correct git URL is https://github.com/libretro/libretro-super.git
2019-06-23 16:57:47 -04: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
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
Zlika 4dbd15381a Add missing files in libretro-db Makefile 2019-01-26 15:05:50 +01:00
orbea e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
markwkidd 638ab39dfb
add libretro-db docs for consolidating DATs 2018-12-14 14:08:32 -05:00
Twinaphex 2a39dc7045
Merge pull request #7594 from markwkidd/patch-2
fix libretro-db Makefile
2018-11-15 21:50:57 +01:00
markwkidd 04bdca8e1f
update, expand, and re-sequence libretro-db doc 2018-11-15 13:02:41 -05:00
markwkidd 0aca0afa07
fix libretro-db Makefile
The current Makefile doesn't work. This patch comes via @grant2258 and originally from @natinusala and is intended to resolve https://github.com/libretro/RetroArch/issues/7586
2018-11-15 10:38:24 -05:00
twinaphex 3c73183a04 Cleanups - fix warnings 2018-05-07 15:05:59 +02:00
Twinaphex a20d53202d
Merge pull request #6576 from RobLoach/patch-30
libretro-db: Show missing key match warning once
2018-04-14 20:47:53 +02:00
Rob Loach d44f9467e4
libretro-db: Fix whitespace 2018-04-14 14:10:40 -04:00
Rob Loach d3bbdb2e06
libretro-db: Show missing key match warning once
Before, the "missing match" warning would appear for every entry. This change makes it show that it only displays the warning once.
2018-04-14 14:09:46 -04:00
Rob Loach b0a2df41dd
libretro-db: Ignore compiled binaries
This makes it so that the compiled libretro-db binaries are ignored from git.
2018-04-14 14:08:28 -04:00
twinaphex 71b423c572 Don't use mmap for libretrodb - using mmap seems
to have adverse performance impact
2018-02-13 07:34:19 +01:00
Alcaro 12ed6b8657 oh right, that's what it wants. 2017-12-28 04:13:00 +01:00
Alcaro c29d5906d2 okay so why exactly are we using seek instead of tell/size 2017-12-28 04:08:41 +01:00
Rob Loach 4564301bb5
Update c_converter with libretro-common vfs changes 2017-12-20 20:15:33 -05:00
twinaphex 6622cb0810 Update libretro API 2017-12-16 14:12:38 +01:00
Alcaro ecf5d55a25 Rename this one, to not codify policy in what should be a frontend decision 2017-12-14 21:21:18 +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
twinaphex 61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex 318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex 2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
Alcaro 6394e30cb5
fix missing %s 2017-11-27 17:16:11 +01:00
Alcaro e21de200a6
fix missing %s 2017-11-27 17:15:58 +01:00
Alcaro 4275dd8f1f
#5802 2017-11-27 17:09:03 +01:00
Alcaro da9cddd833
#5802 2017-11-27 17:08:41 +01:00
Brian Koropoff 461b884dc0 Remove commited Mac binaries 2017-11-26 09:58:24 -08:00
meepingsnesroms 621567e0e6
Merge pull request #2 from libretro/master
Merge upstream
2017-11-25 17:26:02 -08:00
meepingsnesroms 03f2a325fb Add 3ds assets, move assets from ctr to pkg/ctr
NOTE: I do not have the 3ds version of devkitARM installed so I could
not test it if moving the assets to pkg/ctr broke compiling but I did
change the assets paths in Makefile.ctr and Makefile.ctr.salimander so
it should compile.
2017-11-24 09:28:47 -08:00
meepingsnesroms 9e3d631824 Fix outdated name of function (libretrodb_tool) 2017-11-19 13:25:17 -08:00
Twinaphex 5ba28b60aa
Merge pull request #5699 from meepingsnesroms/master
Properly clean up memory on exit(libretrodb_tool)
2017-11-18 10:18:14 +01:00
meepingsnesroms 9d598cb917 Properly clean up memory on exit(libretrodb_tool) 2017-11-17 16:44:15 -08:00
Brad Parker 07f3919811 only call setvbuf right after opening file, and use our own buffer for C89 compliance 2017-11-17 02:28:45 -05:00
meepingsnesroms b3e22f6060 Add option to search libretro databases and only print game name 2017-11-15 16:42:22 -08:00
twinaphex c68db61188 Silence more Clang warnings 2017-10-11 22:49:13 +02:00
twinaphex 8238545bef Cleanups 2017-10-04 06:53:47 +02:00
Alcaro dc4c2cd6d9 Wipe out a buncha warnings and pointless ifdefs (some warnings will remain until #5497 is fixed) 2017-10-03 00:26:29 +02:00
twinaphex 3090f3ff3a (task_database.c) Rewrite char arrays 2017-09-29 20:47:54 +02:00
Brad Parker 0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
ensra 4dcb151f03 Fix db build 2017-08-17 01:06:18 +01:00
Rob Loach 11f8938f7e Update RDB building to ignore missing keys
This change makes it so that when building the RDB files, the entries that are missing `serial` keys will simply be ignored and the RDB file will still build. When it's missing the key, it also logs which line it's processing so that we can easily fix the broken entry in libretro-database.
2017-06-07 10:43:56 -04: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 6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
twinaphex dd517f4660 Try to avoid directly calling strcmp 2017-04-21 13:56:15 +02:00
Twinaphex 216e7bcdaf Silence more warnings on iOS 2017-02-26 21:46:19 +01:00
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