From d94dd61642f3eaf60ae678858ee572c73f5cbee4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 20 Jan 2015 03:36:50 +0100 Subject: [PATCH] Update libretroDB --- libretrodb/README.md | 13 +++++++++++++ libretrodb/dat_converter.lua | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/libretrodb/README.md b/libretrodb/README.md index 5107f3118b..977011702b 100644 --- a/libretrodb/README.md +++ b/libretrodb/README.md @@ -53,3 +53,16 @@ for example: dat_converter snes.rdb rom.crc snes1.dat snes2.dat ~~~ +# Query examples +Some examples of queries you can use with rarchdbtool: + +1) Glob pattern matching +Usecase : Search for all games containing 'Street Fighter' in the 'name' field (glob pattern matching) + +`rarchdb_tool find "{'name':glob('Street Fighter*')}"` + +2) Combined number matching query +Usecase: Search for all games released on October 1995. + +`rarchdb_tool find "{'releasemonth':10,'releaseyear':1995}"` + diff --git a/libretrodb/dat_converter.lua b/libretrodb/dat_converter.lua index eccc87eeda..f4574dcf30 100644 --- a/libretrodb/dat_converter.lua +++ b/libretrodb/dat_converter.lua @@ -149,11 +149,16 @@ function get_value() releaseyear = uint(tonumber(t.releaseyear)), rumble = uint(tonumber(t.rumble)), analog = uint(tonumber(t.analog)), + + edge_rating = uint(tonumber(t.edge_rating)), + edge_issue = uint(tonumber(t.edge_issue)), + barcode = t.barcode, esrb_rating = t.esrb_rating, elspa_rating = t.elspa_rating, pegi_rating = t.pegi_rating, cero_rating = t.cero_rating, + serial = binary(t.serial), developers = t.developers, publisher = t.publisher,