Lame support for multipart archives in assets, added XRick game

This commit is contained in:
pelya
2011-11-29 14:22:29 +02:00
parent baa8ac0731
commit 8407008d6c
9 changed files with 212 additions and 21 deletions

View File

@@ -875,7 +875,10 @@ if [ -d "project/jni/application/src/AndroidData" ] ; then
echo Copying asset files
for F in project/jni/application/src/AndroidData/*; do
if [ `cat $F | wc -c` -gt 1048576 ] ; then
echo "Error: the file $F is bigger than 1048576 bytes - some Android devices will fail to extract such file\nPlease split your data into several small files, or use HTTP download method"
echo "Error: the file $F is bigger than 1048576 bytes - some Android devices will fail to extract such file"
echo "Please use HTTP download method, or split your data into several small files with command:"
echo "split -b 1000000 -d data.zip data.zip"
echo "It will create files data.zip00, data.zip01 etc, and SDL will try to search for such files in assets when unpacking data.zip"
exit 1
fi
done