diff --git a/libretrodb/README.md b/libretrodb/README.md index 977011702b..1150b2d788 100644 --- a/libretrodb/README.md +++ b/libretrodb/README.md @@ -57,7 +57,7 @@ dat_converter snes.rdb rom.crc snes1.dat snes2.dat 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) +Usecase : Search for all games starting with 'Street Fighter' in the 'name' field (glob pattern matching) `rarchdb_tool find "{'name':glob('Street Fighter*')}"` diff --git a/libretrodb/dat_converter.lua b/libretrodb/dat_converter.lua index f4574dcf30..76a4f4a6ec 100644 --- a/libretrodb/dat_converter.lua +++ b/libretrodb/dat_converter.lua @@ -158,7 +158,6 @@ function get_value() 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, @@ -167,7 +166,7 @@ function get_value() crc = binary(unhex(t.rom.crc)), md5 = binary(unhex(t.rom.md5)), sha1 = binary(unhex(t.rom.sha1)), - serial = binary(t.rom.serial), + serial = binary(t.serial or t.rom.serial), } end end