Files
Diddy-Kong-Racing/mips_to_c.sh
T
Ryan MyersandGitHub f723489a0f Match 7 different functions, and several more WIP (#401)
* Explicitly mark some object functions as void, which exposed a minor flaw in render_hud.

* WIP func_80006FC8

* More func_80006FC8 WIP

* MORE WIP

* Much progress, such wow.

* Look at all the commits I have!

* Score to 35k

* 15529

* BEEP BOOP

* Remove file

* 14973

* 8482

* 8046

* 7300

* func_80006AC8 near match

* Move some asm files into more apprproate folders for the file they are part of.

* Match func_800050D0

* Match func_80006AC8

* func_80006FC8 4894

* 3569!

* 3024, if statement fix.

* Make a m2cfiles dir so I stop accidentally committing those files.

* Score improvement

* Make func_80005254 buildable, but not anything mor

* func_80005254 29432

* func_80005254 16987

* func_80005254 15632

* func_80006BFC 1015

* Match func_80006BFC

* Update score

* func_80005D08 5605

* func_80005D08 3190

* func_80005D08 2386

* func_80005D08 165

* func_80005D08 score 65.

* Promote func_80005D08 to NON_MATCHING

* Matched func_80005D08!

* func_80005254 3347

* func_80005254 3185

* parking func_80005254 for now.

* func_800063EC compiling

* Park func_800063EC at 3011

* Fix func_80004B40 for M2C

* Start func_80004B40

* REALLY ROUGH func_80004B40

* Kind of wandering ROUGHLY Towards correct on func_80004B40

* Rename a field to make it clear it's currently just padding space

* Bring func_8002E234 to a reasonably close match WIP

* func_8002E234 2359

* Update sprintf signature

* func_8002E234 993 with shenanigans

* Woops

* Increase score for func_80005254

* func_8002FA64 score 10.

* Match func_8002FA64

* Start identifying some var types

* Little more variable identifcations

* Match func_8002C0C4

* Really close on func_8000C8F8

* Make func_8000C8F8 NON_MATCHING

* Match func_8000E898

* Add UNUSED tags to a couple functions

* Update score
2023-09-01 08:17:01 -04:00

8 lines
277 B
Bash
Executable File

#!/bin/sh
#Make the m2cfiles dir if it doesn't already exist
mkdir -p m2cfiles
ASMFILE=$(find . -type f -name "*$1.s")
echo '#include "../ctx.c"\n' > m2cfiles/$1.c
python3 ../m2c/m2c.py --target mips-ido-c --pointer-style right --context ctx.c -f $1 $ASMFILE >> m2cfiles/$1.c