mirror of
https://github.com/ksherlock/ample.git
synced 2026-10-29 23:02:21 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a482191ab | ||
|
|
3827cce320 | ||
|
|
82fbe43795 |
No files matched your search
@@ -1498,7 +1498,7 @@
|
||||
CODE_SIGN_ENTITLEMENTS = Ample/Ample.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 17;
|
||||
CURRENT_PROJECT_VERSION = 18;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
@@ -1509,7 +1509,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = "0.234-wip";
|
||||
MARKETING_VERSION = 0.234;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ksherlock.ample;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
};
|
||||
@@ -1522,7 +1522,7 @@
|
||||
CODE_SIGN_ENTITLEMENTS = Ample/Ample.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 17;
|
||||
CURRENT_PROJECT_VERSION = 18;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
@@ -1533,7 +1533,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = "0.234-wip";
|
||||
MARKETING_VERSION = 0.234;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ksherlock.ample;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>MameComponentsDate</key>
|
||||
<date>2021-07-01T16:00:00Z</date>
|
||||
<date>2021-07-28T16:00:00Z</date>
|
||||
<key>UseCustomMame</key>
|
||||
<false/>
|
||||
<key>AutoCloseLogWindow</key>
|
||||
@@ -15,7 +15,7 @@
|
||||
<key>NSQuitAlwaysKeepsWindows</key>
|
||||
<true/>
|
||||
<key>DefaultDownloadURL</key>
|
||||
<string>https://archive.org/download/mame.0229</string>
|
||||
<string>https://archive.org/download/mame0232repo</string>
|
||||
<key>DefaultDownloadExtension</key>
|
||||
<string>zip</string>
|
||||
</dict>
|
||||
|
||||
@@ -2,12 +2,6 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>source</key>
|
||||
<string>https://archive.org/download/mame0.224</string>
|
||||
<key>type</key>
|
||||
<string>zip</string>
|
||||
<key>version</key>
|
||||
<string>0.224</string>
|
||||
<key>roms</key>
|
||||
<array>
|
||||
<string>a1cass</string>
|
||||
@@ -113,7 +107,6 @@
|
||||
<string>ivelultr</string>
|
||||
<string>kb_ec1841</string>
|
||||
<string>kb_iskr1030</string>
|
||||
<string>kb_pc83</string>
|
||||
<string>kb_pcxt83</string>
|
||||
<string>keytronic_pc3270</string>
|
||||
<string>las128e2</string>
|
||||
@@ -126,17 +119,12 @@
|
||||
<string>mac128k</string>
|
||||
<string>mac2fdhd</string>
|
||||
<string>mac512k</string>
|
||||
<string>mac512ke</string>
|
||||
<string>macclas2</string>
|
||||
<string>macclasc</string>
|
||||
<string>macii</string>
|
||||
<string>maciici</string>
|
||||
<string>maciicx</string>
|
||||
<string>maciihmu</string>
|
||||
<string>maciisi</string>
|
||||
<string>maciivi</string>
|
||||
<string>maciivx</string>
|
||||
<string>maciix</string>
|
||||
<string>mackbd_m0110</string>
|
||||
<string>mackbd_m0110a</string>
|
||||
<string>mackbd_m0110a_f</string>
|
||||
|
||||
+48
-9
@@ -4,6 +4,9 @@ import subprocess
|
||||
from plist import to_plist
|
||||
|
||||
import xml.etree.ElementTree as ET
|
||||
from html.parser import HTMLParser
|
||||
from os.path import splitext
|
||||
|
||||
|
||||
from machines import MACHINES
|
||||
|
||||
@@ -35,7 +38,7 @@ p.add_argument('--full', action='store_true')
|
||||
p.add_argument('machine', nargs="*")
|
||||
args = p.parse_args()
|
||||
|
||||
full = args.full
|
||||
# full = args.full
|
||||
machines = args.machine
|
||||
if not machines: machines = [ *MACHINES, *EXTRA_MACHINES]
|
||||
|
||||
@@ -82,8 +85,42 @@ EXCLUDE = [
|
||||
]
|
||||
|
||||
|
||||
def build_known_roms_list():
|
||||
infile = "mame-0233-full.html"
|
||||
# infile = "mame-0.231-merged.html"
|
||||
rv = set()
|
||||
|
||||
class X(HTMLParser):
|
||||
rv = set()
|
||||
|
||||
def handle_starttag(self, tag, attrs):
|
||||
if tag != 'a': return
|
||||
href = None
|
||||
for xx in attrs:
|
||||
if xx[0] == 'href':
|
||||
href = xx[1]
|
||||
break
|
||||
if not href: return
|
||||
root, ext = splitext(href)
|
||||
if ext in (".7z", ".zip"): self.rv.add(root)
|
||||
|
||||
|
||||
|
||||
x = X()
|
||||
with open(infile) as f:
|
||||
data = f.read()
|
||||
x.feed(data)
|
||||
x.close()
|
||||
return x.rv
|
||||
|
||||
|
||||
|
||||
|
||||
mnames = set()
|
||||
rnames = set()
|
||||
|
||||
known = build_known_roms_list()
|
||||
|
||||
for m in machines:
|
||||
|
||||
print(m)
|
||||
@@ -101,9 +138,10 @@ for m in machines:
|
||||
|
||||
# find machines that have a rom child
|
||||
for x in root.findall('machine/rom/..'):
|
||||
mnames.add(x.get('name'))
|
||||
for y in x.findall('./rom'):
|
||||
rnames.add(y.get('name'))
|
||||
name = x.get('name')
|
||||
if (name in known): mnames.add(name)
|
||||
# for y in x.findall('./rom'):
|
||||
# rnames.add(y.get('name'))
|
||||
|
||||
|
||||
# print("\n\n\n")
|
||||
@@ -112,14 +150,15 @@ for m in machines:
|
||||
# for x in ll:
|
||||
# print(x)
|
||||
|
||||
if full: ROMS = list(mnames)
|
||||
else: ROMS = list(mnames.difference(EXCLUDE))
|
||||
# if full: ROMS = list(mnames)
|
||||
# else: ROMS = list(mnames.difference(EXCLUDE))
|
||||
ROMS = list(mnames)
|
||||
ROMS.sort()
|
||||
|
||||
data = {}
|
||||
data["source"] = "https://archive.org/download/mame0.224"
|
||||
data["type"] = "zip"
|
||||
data["version"] = "0.224"
|
||||
# data["source"] = "https://archive.org/download/mame0.224"
|
||||
# data["type"] = "zip"
|
||||
# data["version"] = "0.224"
|
||||
data["roms"] = ROMS
|
||||
|
||||
# print(ROMS)
|
||||
|
||||
Reference in new issue
Block a user