Changeset 419
- Timestamp:
- 06/15/08 13:15:19 (2 years ago)
- Files:
-
- branches/juciphox/core/luascript.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/juciphox/core/luascript.c
r416 r419 457 457 static int luaCB_get_usb_power( lua_State* L ) 458 458 { 459 lua_push boolean( L, get_usb_power(0) );459 lua_pushnumber( L, get_usb_power(0) ); 460 460 return 1; 461 461 } … … 505 505 } 506 506 507 static int luaCB_ shooting( lua_State* L )508 { 509 lua_push number( L, shooting_get_prop(PROPCASE_SHOOTING) );507 static int luaCB_get_shooting( lua_State* L ) 508 { 509 lua_pushboolean( L, shooting_get_prop(PROPCASE_SHOOTING) ); 510 510 return 1; 511 511 } … … 513 513 static int luaCB_get_flash_ready( lua_State* L ) 514 514 { 515 lua_push number( L, shooting_get_prop(PROPCASE_IS_FLASH_READY) );515 lua_pushboolean( L, shooting_get_prop(PROPCASE_IS_FLASH_READY) ); 516 516 return 1; 517 517 } … … 547 547 to = 2; 548 548 #endif 549 lua_push boolean( L, to );549 lua_pushnumber( L, to ); 550 550 return 1; 551 551 } … … 691 691 FUNC(get_drive_mode); 692 692 FUNC(get_flash_mode); 693 FUNC( shooting);693 FUNC(get_shooting); 694 694 FUNC(get_flash_ready); 695 695 FUNC(get_IS_mode);