SuperTux: updated scripts

This commit is contained in:
Sergii Pylypenko
2022-01-09 21:18:16 +02:00
parent 47e6527a6f
commit 7dae18fa7d
3 changed files with 6 additions and 2 deletions

View File

@@ -11,6 +11,10 @@ OUT=`pwd`/../../../../SuperTux-with-data.apk
DATAZIP=`pwd`/../../../../SuperTux-data.zip
rm -f $OUT $OUT-aligned
cd supertux/data || exit 1
if [ -e $HOME/.local/share/supertux2/tilecache ]; then
mkdir -p tilecache
cp -f $HOME/.local/share/supertux2/tilecache/* tilecache/
fi
cp -f ../../../../../../project/app/build/outputs/apk/release/app-release.apk $OUT || exit 1
if zipmerge -h >/dev/null; then
[ -e $DATAZIP ] || zip -r -9 $DATAZIP * || exit 1

View File

@@ -110,7 +110,7 @@ SDL2 will generate additional mouse events for touchscreen and touch events for
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
SDL2 will not terminate the app process and will not unload shared libraries when your main() / SDL_main() function returns,
when the app is launched again your main() will be called again without clearing global and static variables.
when the app is launched again your main() will be called twice without clearing global and static variables.
To prevent this, call exit() or _exit() instead of returning from main().
SDL2 by default does not allow internet access in the AndroidManifest.xml, to fix this copy the patch file