Changeset 1360 for trunk


Ignore:
Timestamp:
10/09/11 18:56:44 (3 years ago)
Author:
philmoz
Message:

Default path to root directory if not supplied when calling file_browser from Lua script (from CHDK-DE changeset 828).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/luascript.c

    r1359 r1360  
    777777    // Push file browser action onto stack - will loop doing nothing until file browser exits 
    778778    action_push(AS_FILE_BROWSER); 
    779     // Switch to file browser gui mode. 
    780     gui_fselect_init(LANG_STR_FILE_BROWSER, luaL_optstring( L, 1, NULL ), file_browser_selected); 
     779    // Switch to file browser gui mode. Path can be supplied in call or defaults to "A" (root directory). 
     780    gui_fselect_init(LANG_STR_FILE_BROWSER, luaL_optstring( L, 1, "A" ), file_browser_selected); 
    781781    // Yield the script so that the action stack will process the AS_FILE_BROWSER action 
    782782    return lua_yield(L, 0); 
Note: See TracChangeset for help on using the changeset viewer.