mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-09 20:21:45 +00:00
f82d7a3db4
* Rewrote mutex handling throughout the code to use a small, macro-based scoped lock implementation. * Removed extern variables from common.h - launch path management is now completely handled in utils.c. * Updated NpdmSystemCallId_Count to reflect changes introduced in 12.0.0. * Added NcaMainSignatureKeyGeneration enum. * NCA main signature moduli are now retrieved from FS .rodata at runtime. * Simplified lock management in usb.c by using a single global mutex with scoped locks instead of three different r/w locks. * Updated FatFs to R0.14b. * Enabled 64-bit LBA support in FatFs to potentially support custom eMMC replacements / resized USER partitions in the future. * Updated LZ4 to v1.9.3. * Fixed typos. * USB gamecard dumper PoC now only dumps the Initial Data area. * Updated to-do list.
51 lines
1.1 KiB
Bash
51 lines
1.1 KiB
Bash
#!/bin/bash
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
tar_filename="nxdumptool-rewrite_poc_$(git rev-parse --short HEAD).tar.bz2"
|
|
|
|
rm -f ./*.tar.bz2
|
|
|
|
rm -rf ./code_templates/tmp
|
|
mkdir ./code_templates/tmp
|
|
|
|
mv ./source/main.cpp ./main.cpp
|
|
|
|
make clean_all
|
|
|
|
for f in ./code_templates/*.c; do
|
|
basename="$(basename "$f")"
|
|
filename="${basename%.*}"
|
|
|
|
if [[ $filename == "dump_title_infos" ]]; then
|
|
continue
|
|
fi
|
|
|
|
echo $filename
|
|
|
|
rm -f ./source/main.c
|
|
cp $f ./source/main.c
|
|
|
|
cp ./romfs/icon/nxdumptool.jpg ./romfs/icon/$filename.jpg
|
|
|
|
make BUILD_TYPE="$filename" -j$(nproc)
|
|
|
|
rm -f ./romfs/icon/$filename.jpg
|
|
|
|
mkdir ./code_templates/tmp/$filename
|
|
cp ./$filename.nro ./code_templates/tmp/$filename/$filename.nro
|
|
#cp ./$filename.elf ./code_templates/tmp/$filename/$filename.elf
|
|
|
|
make BUILD_TYPE="$filename" clean
|
|
done
|
|
|
|
make clean_all
|
|
|
|
cd ./code_templates/tmp
|
|
tar -cjf ../../$tar_filename *
|
|
|
|
cd ../..
|
|
rm -f ./source/main.c
|
|
rm -rf ./code_templates/tmp
|
|
mv ./main.cpp ./source/main.cpp
|
|
|
|
read -p "Press any key to finish ..."
|