flip_world.c 603 B

123456789101112131415161718
  1. #include <flip_world.h>
  2. char *game_fps_choices[] = {"30", "60", "120", "240"};
  3. const float game_fps_choices_2[] = {30.0, 60.0, 120.0, 240.0};
  4. int game_fps_index = 0;
  5. char *yes_or_no_choices[] = {"No", "Yes"};
  6. int game_screen_always_on_index = 1;
  7. int game_sound_on_index = 0;
  8. int game_vibration_on_index = 0;
  9. FlipWorldApp *app_instance = NULL;
  10. bool is_enough_heap(size_t heap_size)
  11. {
  12. size_t free_heap = memmgr_get_free_heap();
  13. FURI_LOG_I(TAG, "Free heap: %d", free_heap);
  14. FURI_LOG_I(TAG, "Total heap: %d", memmgr_get_total_heap());
  15. return free_heap > (heap_size + 1024); // 1KB buffer
  16. }