From 700436d695e720800841b05f81c53d46e9446ac6 Mon Sep 17 00:00:00 2001 From: Seeky <58006653+SeekyCt@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:29:51 +0000 Subject: [PATCH] Update for new decomp.me API --- decompme.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/decompme.py b/decompme.py index 09f763e..845fea3 100644 --- a/decompme.py +++ b/decompme.py @@ -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 @@ -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']}")