From 8e31f22bcd1e69b1b50bfdc3d615a98e61ac1c4b Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 28 Sep 2019 21:25:50 +1000 Subject: minimaws: load ROMs and disks, and add a romident subcommand --- scripts/minimaws/minimaws.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/minimaws/minimaws.py') diff --git a/scripts/minimaws/minimaws.py b/scripts/minimaws/minimaws.py index 656956a0275..399efa1784a 100755 --- a/scripts/minimaws/minimaws.py +++ b/scripts/minimaws/minimaws.py @@ -26,6 +26,11 @@ ## $ python minimaws.py listclones "unkch*" ## $ python minimaws.py listbrothers superx ## +## The romident command does not support archives, but it's far faster +## than using MAME as it has optimised indexes: +## +## $ python minimaws.py romident 27c64.bin dump-dir +## ## One more sophisticated query command is provided that MAME has no ## equivalent for. The listaffected command shows all runnable machines ## that reference devices defined in specified source files: @@ -100,6 +105,9 @@ if __name__ == '__main__': subparser = subparsers.add_parser('listaffected', help='show drivers affected by source change(s)') subparser.add_argument('pattern', nargs='+', metavar='', help='source file glob pattern') + subparser = subparsers.add_parser('romident', help='identify ROM dump(s)') + subparser.add_argument('path', nargs='+', metavar='', help='ROM dump file/directory path') + subparser = subparsers.add_parser('serve', help='serve over HTTP') subparser.add_argument('--port', metavar='', default=8080, type=int, help='server TCP port') subparser.add_argument('--host', metavar='', default='', help='server TCP hostname') @@ -120,6 +128,8 @@ if __name__ == '__main__': lib.auxverbs.do_listbrothers(options) elif options.command == 'listaffected': lib.auxverbs.do_listaffected(options) + elif options.command == 'romident': + lib.auxverbs.do_romident(options) elif options.command == 'serve': lib.wsgiserve.run_server(options) elif options.command == 'load': -- cgit v1.2.3-70-g09d2