Skip to content

Commit

Permalink
[decompme] pass correct source flags, use claim token
Browse files Browse the repository at this point in the history
  • Loading branch information
em-eight authored and riidefi committed Feb 2, 2024
1 parent d11e6ec commit a0308e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mkwutil/tools/create_ctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_ctx(match: str, out: Path, verbose=True):
source_header = Path(source.src).with_suffix(".hpp")
if verbose:
print(f"Generating context for {source_header} at {out}")
command = f"{CWCC_PATHS[source.cc]} {CWCC_OPT} {source_header} -o {out}"
command = f"{CWCC_PATHS[source.cc]} {CWCC_OPT} {source.opts} {source_header} -o {out}"
lines, retcode = run_windows_cmd(command)
return source

Expand Down
3 changes: 2 additions & 1 deletion mkwutil/tools/decompme.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@
}
r = requests.post(args.host + "/api/scratch", json=req)
assert r.status_code == 201, f"Bad status code {r.status_code}"
print(args.host + '/scratch/' + r.json()["slug"])
dat = r.json()
print(f"{args.host}/scratch/{dat['slug']}/claim?token={dat['claim_token']}")

0 comments on commit a0308e6

Please sign in to comment.