From 450feb46cc245a900e2408cb409b9b634f7b70e2 Mon Sep 17 00:00:00 2001 From: ZornTaov Date: Thu, 18 Jul 2019 14:02:17 -0700 Subject: [PATCH] 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. --- libretro-db/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libretro-db/README.md b/libretro-db/README.md index 5b4fc0ade7..debe81daf2 100644 --- a/libretro-db/README.md +++ b/libretro-db/README.md @@ -69,7 +69,12 @@ Usecase: Search for all games released on October 1995. `libretrodb_tool find "{'releasemonth':10,'releaseyear':1995}"` -3) Names only search +3) Hash matching query +Usecase: Search for any game matching a given crc32, in this case Soul Blazer (USA) for the SNES. Also works with serial, md5, and sha1. + +`libretrodb_tool find "{'crc':b'31B965DB'}"` + +4) Names only search Usecase: Search for all games released on October 1995, wont print checksums, filename or rom size, only the game name. `libretrodb_tool get-names "{'releasemonth':10,'releaseyear':1995}"`