mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 13:44:15 +01:00
2b32db857a
currently loaded cIOS instead -fixed bug of missing remount if no games are found with enabled NAND emulation which made wiiflow hang -added information for neek2o -removed ios reload on boot when wiiflow is in neek2o mode -made NAND file extraction MEM2 only -fixed two not free'd memory allocations which could fill the memory with unused stuff
29 lines
378 B
Bash
29 lines
378 B
Bash
#!/bin/bash
|
|
|
|
FILENAME=source/loader/alt_ios_gen.c
|
|
GENERATE=0
|
|
VERSION=249
|
|
|
|
if [ ! -z "$1" ];
|
|
then
|
|
VERSION=$1
|
|
fi
|
|
|
|
if [ ! -f $FILENAME ];
|
|
then
|
|
GENERATE=1
|
|
else
|
|
CURRENT_VERSION=`grep mainIOS\ = $FILENAME | awk '{printf "%d", $4}'`
|
|
if [ $CURRENT_VERSION -ne $VERSION ];
|
|
then
|
|
GENERATE=1
|
|
fi
|
|
fi
|
|
|
|
if [ $GENERATE -eq 1 ];
|
|
then
|
|
|
|
cat <<EOF > $FILENAME
|
|
int mainIOS = $VERSION;
|
|
EOF
|
|
fi |