Assembla home | Assembla project page
 

Changeset 419

Show
Ignore:
Timestamp:
06/15/08 13:15:19 (2 years ago)
Author:
Jucifer
Message:

- some Lua fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/juciphox/core/luascript.c

    r416 r419  
    457457static int luaCB_get_usb_power( lua_State* L ) 
    458458{ 
    459   lua_pushboolean( L, get_usb_power(0) ); 
     459  lua_pushnumber( L, get_usb_power(0) ); 
    460460  return 1; 
    461461} 
     
    505505} 
    506506 
    507 static int luaCB_shooting( lua_State* L ) 
    508 { 
    509   lua_pushnumber( L, shooting_get_prop(PROPCASE_SHOOTING) ); 
     507static int luaCB_get_shooting( lua_State* L ) 
     508{ 
     509  lua_pushboolean( L, shooting_get_prop(PROPCASE_SHOOTING) ); 
    510510  return 1; 
    511511} 
     
    513513static int luaCB_get_flash_ready( lua_State* L ) 
    514514{ 
    515   lua_pushnumber( L, shooting_get_prop(PROPCASE_IS_FLASH_READY) ); 
     515  lua_pushboolean( L, shooting_get_prop(PROPCASE_IS_FLASH_READY) ); 
    516516  return 1; 
    517517} 
     
    547547  to = 2; 
    548548  #endif 
    549   lua_pushboolean( L, to ); 
     549  lua_pushnumber( L, to ); 
    550550  return 1; 
    551551} 
     
    691691  FUNC(get_drive_mode); 
    692692  FUNC(get_flash_mode); 
    693   FUNC(shooting); 
     693  FUNC(get_shooting); 
    694694  FUNC(get_flash_ready); 
    695695  FUNC(get_IS_mode);