Changeset 1044
- Timestamp:
- 01/15/11 22:11:51 (2 years ago)
- File:
-
- 1 edited
-
trunk/core/script.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/script.c
r1036 r1044 455 455 } 456 456 457 #ifdef OPT_LUA458 457 static int is_lua() 459 458 { … … 467 466 && s[len-4] == '.'; 468 467 } 469 #endif470 468 471 469 static void wait_and_end(void) … … 630 628 script_console_add_line(lang_str(LANG_CONSOLE_TEXT_STARTED)); 631 629 630 if( is_lua() ) { 632 631 #ifdef OPT_LUA 633 if( is_lua() ) {634 632 if( !lua_script_start(script_source_str) ) { 635 633 script_print_screen_end(); … … 646 644 } 647 645 state_lua_kbd_first_call_to_resume = 1; 646 #else 647 console_add_line("Cannot run script."); 648 console_add_line("There is no Lua"); 649 console_add_line("support in this build."); 650 return -1; 651 #endif 648 652 } else 649 #endif650 653 { // ubasic 651 654 #ifdef OPT_UBASIC … … 655 658 ubasic_set_variable(i, conf.ubasic_vars[i]); 656 659 } 660 #else 661 console_add_line("Cannot run script."); 662 console_add_line("There is no UBasic"); 663 console_add_line("support in this build."); 664 return -1; 657 665 #endif 658 666 }
Note: See TracChangeset
for help on using the changeset viewer.