Skip to content

Commit

Permalink
Update for new decomp.me API
Browse files Browse the repository at this point in the history
  • Loading branch information
SeekyCt committed Dec 29, 2023
1 parent 2d1baee commit 700436d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions decompme.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

# Get flags for binary
if binary == c.Binary.DOL:
preset = "Super Paper Mario (DOL)"
preset = 74 # "Super Paper Mario (DOL)"
flags = c.EXTERNAL_DOL_CFLAGS
else:
preset = "Super Paper Mario (REL)"
preset = 75 # "Super Paper Mario (REL)"
flags = c.EXTERNAL_REL_CFLAGS

# Disassemble function
Expand All @@ -58,5 +58,5 @@
"diff_label" : diff_label
}
r = requests.post(args.host + "/api/scratch", json=req)
assert r.status_code == 201, f"Bad status code {r.status_code}"
print(args.host + r.json()["html_url"])
assert r.status_code == 201, f"Bad status code {r.status_code} {r.text}"
print(f"{args.host}/scratch/{r.json()['slug']}")

0 comments on commit 700436d

Please sign in to comment.