-
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.
- Loading branch information
Showing
19 changed files
with
147 additions
and
2,547 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
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
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,10 @@ | ||
clrmamepro ( | ||
) | ||
|
||
game ( | ||
name 2-48 | ||
description 2-48 | ||
rom ( name 08.rom size 8 crc 3656897d md5 095ca6fcc1279865662b553147eb8f6d sha1 111bb8b7549e3386a996845405b02164f17c7b37 ) | ||
rom ( name 04.rom size 4 crc d87f7e0c md5 098f6bcd4621d373cade4e832627b4f6 sha1 a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 ) | ||
) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
description test single-rom game (no parent), add missing rom, torrentzip it | ||
variants zip | ||
return 0 | ||
args -D ../mamedb-reversesorted.db -Fjvc -e extra --use-torrentzip 2-48 | ||
file-new roms/2-48.zip 2-48-ok.zip | ||
file-del extra/2-48.zip 2-48-ok.zip | ||
stdout-data | ||
In game 2-48: | ||
rom 08.rom size 8 crc 3656897d: is in 'extra/2-48.zip/08.rom' | ||
rom 04.rom size 4 crc d87f7e0c: is in 'extra/2-48.zip/04.rom' | ||
add 'extra/2-48.zip/08.rom' as '08.rom' | ||
add 'extra/2-48.zip/04.rom' as '04.rom' | ||
In archive extra/2-48.zip: | ||
delete used file '04.rom' | ||
delete used file '08.rom' | ||
remove empty archive | ||
end-of-data |
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,19 @@ | ||
description test copying file to garbage, failing (disk full) and not removing from set | ||
variants zip | ||
return 0 | ||
setenv RENAME_ALWAYS_FAILS 1 | ||
preload fwrite.so | ||
args -Fvcj -D ../mamedb-small.db | ||
file roms/unknown-file.zip unknown-file.zip | ||
stdout-data | ||
In game 1-4: | ||
game 1-4 : not a single file found | ||
In archive roms/unknown-file.zip: | ||
file unknown-file size 21 crc f3b26226: unknown | ||
move unknown file 'unknown-file' | ||
remove empty archive | ||
end-of-data | ||
stderr-data | ||
unknown/unknown-file.zip: error closing zip: Renaming temporary file failed: Operation not permitted | ||
unknown/unknown-file.zip: error closing zip: Containing zip archive was closed | ||
end-of-data |
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 |
---|---|---|
|
@@ -35,6 +35,8 @@ | |
|
||
#include "DB.h" | ||
|
||
#include <optional> | ||
|
||
class DatDB; | ||
|
||
typedef std::shared_ptr<DatDB> DatDBPtr; | ||
|
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
Oops, something went wrong.