-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
ctx.c
and README.md
to dump branch
- Loading branch information
Showing
8 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
set -e | ||
#!/bin/bash | ||
set -euox pipefail | ||
|
||
git clone /input /tmp/input | ||
cd /tmp/input | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
set -e | ||
#!/bin/bash | ||
set -euox pipefail | ||
|
||
apt update | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
set -e | ||
#!/bin/bash | ||
set -euox pipefail | ||
|
||
cd /input | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
#!/bin/sh | ||
set -e | ||
#!/bin/bash | ||
set -euox pipefail | ||
|
||
git clone /input /tmp/input | ||
cd /tmp/input | ||
ln -s /opt/mwcc_compiler tools/ | ||
|
||
make -j"$(nproc)" WINE="$WINE" GENERATE_MAP=1 MAX_ERRORS=1 | ||
|
||
. /opt/venv/bin/activate | ||
pip install --no-cache-dir -r requirements.txt | ||
|
||
make -j"$(nproc)" WINE="$WINE" GENERATE_MAP=1 MAX_ERRORS=1 | ||
cp build/ssbm.us.1.2/GALE01.map /output/ | ||
|
||
readme.py >/output/README.md | ||
|
||
python tools/parse_map.py | ||
python tools/m2ctx/m2ctx.py -pn \ | ||
>/output/ctx.c | ||
dadosod dol build/ssbm.us.1.2/main.dol \ | ||
-m build/map.csv \ | ||
-o /output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
import subprocess | ||
|
||
if __name__ == "__main__": | ||
short_sha = os.getenv("SHORT_SHA") | ||
tree_url = os.getenv("TREE_URL") | ||
|
||
progress = subprocess.run( | ||
[ | ||
"python", | ||
"tools/calcprogress/calcprogress.py", | ||
"--dol", | ||
"build/ssbm.us.1.2/main.dol", | ||
"--map", | ||
"build/ssbm.us.1.2/GALE01.map", | ||
"--asm-obj-ext", | ||
".s.o", | ||
"--old-map", | ||
"true", | ||
], | ||
stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE, | ||
universal_newlines=True, | ||
).stdout.strip() | ||
|
||
readme = f"""# Super Smash Bros Melee Dump | ||
This is a dump of the built ELF from Super Smash Bros Melee. | ||
* For files built from raw assembly, see [`asm`](/asm). | ||
* For files built from C source code, see [`src`](/src). | ||
* For the MetroWorks map file, which can be used with Dolphin, see [`GALE01.map`](/GALE01.map). | ||
* For the context file that can be used on [decomp.me](https://decomp.me/), see [`ctx.c`](/ctx.c). | ||
* This dump was created from commit [`{short_sha}`]({tree_url}). | ||
# Progress | ||
``` | ||
{progress} | ||
```""" | ||
|
||
print(readme) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters