Changeset 1034 for trunk/core/kbd.c


Ignore:
Timestamp:
01/09/11 02:59:52 (2 years ago)
Author:
reyalP
Message:

Thanks to ultimaA, Lua and ubasic optional at compile time, from http://chdk.setepontos.com/index.php?topic=5793.msg59376#msg59376 with minor modifications: http://chdk.setepontos.com/index.php?topic=5793.msg59606#msg59606

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/kbd.c

    r1032 r1034  
    107107#endif 
    108108 
     109#ifdef OPT_SCRIPTING 
    109110// remote autostart 
    110111void script_autostart() 
     
    116117    script_start_gui( 1 ); 
    117118} 
     119#endif 
     120 
    118121void exit_alt() 
    119122{ 
     
    234237        } 
    235238/*-------------------- Alex scriptless remote additions end ---------------------*/ 
     239#ifdef OPT_SCRIPTING 
    236240        if (kbd_is_key_pressed(KEY_SHOOT_FULL)) { 
    237241            key_pressed = 100; 
     
    241245                script_console_add_line(lang_str(LANG_CONSOLE_TEXT_INTERRUPTED)); 
    242246                script_end(); 
    243             } else if (L) { 
     247            } 
     248#ifdef OPT_LUA 
     249            else if (L) { 
    244250                state_kbd_script_run = 2; 
    245251                                lua_run_restore(); 
    246252                script_console_add_line(lang_str(LANG_CONSOLE_TEXT_INTERRUPTED)); 
    247253                script_end(); 
    248             } else { 
     254            } 
     255#endif 
     256#ifdef OPT_UBASIC 
     257            else { 
    249258                state_kbd_script_run = 2; 
    250259                if (jump_label("restore") == 0) { 
     
    253262                } 
    254263            } 
    255         } 
     264#endif 
     265        } 
     266#endif 
    256267 
    257268        action_stack_process_all(); 
Note: See TracChangeset for help on using the changeset viewer.