Migrate main app loop to ctrulib's new aptMainLoop().