root/modules/games/simple_game.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. gui_game_menu_kbd_process
  2. _run
  3. _module_can_unload
  4. _module_exit_alt

   1 #include "simple_module.h"
   2 
   3 // =========  MODULE INIT =================
   4 
   5 static int running = 0;
   6 
   7 void gui_game_menu_kbd_process()
   8 {
   9         running = 0;
  10         gui_default_kbd_process_menu_btn();
  11 }
  12 
  13 /***************** BEGIN OF AUXILARY PART *********************
  14   ATTENTION: DO NOT REMOVE OR CHANGE SIGNATURES IN THIS SECTION
  15  **************************************************************/
  16 
  17 int _run()
  18 {
  19     if (!camera_info.state.mode_play)
  20     {
  21         gui_mbox_init(LANG_MSG_INFO_TITLE, LANG_MSG_SWITCH_TO_PLAY_MODE, MBOX_FUNC_RESTORE|MBOX_TEXT_CENTER, 0);
  22     }
  23     else
  24     {
  25         running = 1;
  26         basic_module_init();
  27     }
  28 
  29     return 0;
  30 }
  31 
  32 int _module_can_unload()
  33 {
  34     return running == 0;
  35 }
  36 
  37 int _module_exit_alt()
  38 {
  39     running = 0;
  40     return 0;
  41 }
  42 
  43 libsimple_sym _librun =
  44 {
  45     {
  46         0,
  47         0,
  48         _module_can_unload,
  49         _module_exit_alt,
  50         _run
  51     }
  52 };
  53 
  54 /*************** END OF AUXILARY PART *******************/

/* [<][>][^][v][top][bottom][index][help] */