mirror of
https://github.com/nesbox/TIC-80.git
synced 2026-04-18 14:32:31 +00:00
* Creates the BUILD_SURF build option * Managing starting with no game loaded When built with BUILD_EDITORS=OFF, and we execute the app without any game, it starts by showing the Main menu. We also hide options from the menu when there is no cart loaded: the Resume and Reset. When we start with no cart and we try to do a Surf, it was saying there were changes made to the cart, so I also do a check if the cart was loaded before showing the warning. So, basically when the App is started without any games, it will show the options: Surf, Options, Quit * Android: BUILD_EDITORS=OFF & BUILD_SURF=ON * Fix inisializing cart by arg when BUILD_EDITORS=OFF * rebuild
USEFUL ADB COMMANDS
BUILD IN DOCKER
You may need to add exec sdkmanager "ndk;23.2.8568313" just before ./gradlew assembleRelease, the version must match the one shown in app/build.gradle.
winpty docker exec -it nice_goldwasser bash -c "cd /tic80/build/android && ./gradlew assembleRelease" && adb install -r app/build/outputs/apk/arm8/release/app-arm8-release.apk && adb shell am start -n com.nesbox.tic/com.nesbox.tic.TIC
INSTALL APP AND RUN
release: adb install -r app/build/outputs/apk/arm8/release/app-arm8-release.apk && adb shell am start -n com.nesbox.tic/com.nesbox.tic.TIC
debug: adb install -r app/build/outputs/apk/arm8/debug/app-arm8-debug.apk && adb shell am start -n com.nesbox.tic/com.nesbox.tic.TIC
VIEW APP LOG
adb logcat --pid `adb shell pidof com.nesbox.tic`
STOP APP
adb shell am force-stop com.nesbox.tic