-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow whitespace at start/end of hash values.
- Loading branch information
Showing
6 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
>>> table dat (dat_idx, name, description, author, version) | ||
0|M.A.M.E.|<null>|<null>|1 | ||
>>> table file (game_id, file_type, file_idx, name, merge, status, location, size, crc, md5, sha1) | ||
1|0|0|parent-1|<null>|0|0|8|305419896|<null>|<1234567890123456789012345678901234567890> | ||
1|0|1|parent-2|<null>|0|0|8|2427178479|<null>|<2345678901234567890123456789012345678901> | ||
>>> table game (game_id, name, parent, description, dat_idx) | ||
1|parent|<null>|Parent|0 | ||
>>> table rule (rule_idx, start_offset, end_offset, operation) | ||
>>> table test (rule_idx, test_idx, type, offset, size, mask, value, result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<mame build="1" debug="no" mameconfig="10"> | ||
<game name="parent" sourcefile="parent.c"> | ||
<description>Parent</description> | ||
<year>2014</year> | ||
<manufacturer>Made Up Games</manufacturer> | ||
<rom name="parent-1" size=" | ||
8 | ||
" crc=" | ||
12345678 | ||
" sha1=" | ||
1234567890123456789012345678901234567890 | ||
" region=" | ||
maincpu | ||
" offset=" | ||
8000 | ||
"/> | ||
<rom name="parent-2" size="8" crc="90abcdef" sha1="2345678901234567890123456789012345678901" region="maincpu" offset="a000"/> | ||
</game> | ||
</mame> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description game has data with leading/trailing whitespace inside the quotes | ||
return 0 | ||
program mkmamedb | ||
args -o mamedb-test.db mamedb.xml | ||
file mamedb.xml mamedb-whitespace.xml mamedb-whitespace.xml | ||
file-new mamedb-test.db mamedb-whitespace.dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters