Files
Microtransactions64/tools/format.sh
someone2639 683bb80c72 file purge + extract_assets revamp (#644)
* remove gen_asset_list (frozen)

* move format.sh

* remove rasm2armips (decompilation helper)

* remove patch_libmalloc (IDO exclusive)

* remove unnecessary sha1's and makefile definitions

* remove libultra math script (IDO exclusive)

* remove patch_elf_32bit

* actually remove bitwidth tool

* remove the need for all the sha1 files

* extract_assets can now find a baserom named anything

* added error handling and some more graceful error handling

* formatting the error message

* more relevant error info

* add a check for a roms folder

* fix gitignore to prevent patch_elf from being re-committed

* naming clarity; change to baseroms/; feedback addressed

* skip rom verification if assets have been extracted

* changes addressed

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2023-08-29 09:06:41 -05:00

15 lines
358 B
Bash
Executable File

#!/usr/bin/env bash
shopt -s globstar
if (( $# > 0 )); then
printf "formatting file(s) $*"
echo
clang-format -i -style=file "$@"
echo done.
exit
fi
echo formatting...
clang-format -i -style=file src/**/*.c # src
clang-format -i -style=file lib/src/*.c # libultra
clang-format -i -style=file enhancements/*.inc.c # enhancements
echo done.