[docker-build.sh] new: create file structure for emulator builds

This commit is contained in:
Robin C. Ladiges 2024-05-16 02:06:36 +02:00
parent 29703c7894
commit 92d7b4e368
No known key found for this signature in database
GPG key ID: B494D3DF92661B99

View file

@ -13,4 +13,16 @@ docker run --rm \
;
docker rmi smoo-client-build
cp -r ./romfs/ ./starlight_patch_*/atmosphere/contents/0100000000010000/.
# copy romfs
DIR=$(dirname ./starlight_patch_*/atmosphere/)
cp -r ./romfs/ $DIR/atmosphere/contents/0100000000010000/.
# create file structure for emulator builds
if [ "$ISEMU" -eq "1" ] ; then
rm -rf $DIR/SMOO/
mkdir -p $DIR/SMOO/
mv $DIR/atmosphere/contents/0100000000010000/exefs $DIR/SMOO/exefs
mv $DIR/atmosphere/contents/0100000000010000/romfs $DIR/SMOO/romfs
mv $DIR/atmosphere/exefs_patches/StarlightBase/3CA12DFAAF9C82DA064D1698DF79CDA1.ips $DIR/SMOO/exefs/
rm -rf $DIR/atmosphere/
fi