rockbox/apps
William Wilgus e4ee5980c6 lua add _fullpath and argument parsing
WIP for passing arguments to lua scripts

args are recognized by adding ?arg to the end of the script path
The easiest way to do this currently is to use the function rb.restart_lua

local sfile = rawget(_G, "_fullpath") or ""
local sArgs = rawget(_G, "_arguments")

if not sArgs then
    rb.restart_lua(sfile .. "?my arguments")
else
    rb.splash(1000, sfile .. "?" .. sArgs)
end

I'd eventually like to figure out a sensible way to do this from a
shortcut / quick list

Change-Id: I2b60fe3b8f1d04b57361fe532510bd6afee59fbf
2020-06-01 13:23:38 -05:00
..
bitmaps xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
gui Bug fix icon.c crashes with negative icon index 2019-09-24 23:51:12 -05:00
hosted/android
iap FS#13186: IAP: Send periodic updates in mode 4 (Stefan Ott) 2020-03-29 18:44:15 +02:00
keymaps FS#13195: rocker: Improved root menu keymap (Howard Richardson) 2020-05-18 22:51:01 +02:00
lang Ukrainian language update 2020-05-24 16:02:52 +02:00
menus Fix red dynamic menus 2019-09-20 03:57:38 -05:00
player Bug fix icon.c crashes with negative icon index 2019-09-24 23:51:12 -05:00
plugins lua add _fullpath and argument parsing 2020-06-01 13:23:38 -05:00
radio Radio: Say current frequency or preset when pausing 2020-05-24 17:43:02 +02:00
recorder jpeg: Fix an overflow when decoding images for non-color targets. 2020-04-05 06:34:21 +02:00
abrepeat.c
abrepeat.h
action.c Fix REMOTE_CONTEXT failure 2019-04-22 16:23:28 -05:00
action.h Action.c FIX / Rework / Clean-up Action System 2017-11-18 16:08:07 +01:00
alarm_menu.c Fix menu warnings 2018-10-18 00:06:31 +02:00
alarm_menu.h Fix menu warnings 2018-10-18 00:06:31 +02:00
appevents.h Get voice event out of playback.c 2017-12-12 20:28:56 -05:00
applimits.h
apps.make
audio_path.c nwzlinux: add support for radio 2017-11-06 21:37:06 +01:00
audio_thread.c Get voice event out of playback.c 2017-12-12 20:28:56 -05:00
audio_thread.h
beep.c
bookmark.c bookmark: #pragma diagnostic push/pop requires GCC >= 4.6 2020-05-18 03:56:49 +02:00
bookmark.h
buffering.c Buffering: Missed converting one case assuming const handle size. 2017-12-19 14:19:39 -05:00
buffering.h Get rid of useless playlist probing and fix up some data types. 2017-12-17 16:33:50 -05:00
codec_thread.c opus reset decoder on seek completion to prevent stack overflow 2019-08-14 17:54:35 +02:00
codec_thread.h
codecs.c
core_asmdefs.c
cuesheet.c Fix Truncation warning in cuesheet.c->browse_cuesheet 2018-12-08 04:47:27 -06:00
cuesheet.h
debug_menu.c talk.h add failed to load splash 2020-05-22 07:52:01 -05:00
debug_menu.h Fix menu warnings 2018-10-18 00:06:31 +02:00
enc_config.c Fix menu warnings 2018-10-18 00:06:31 +02:00
enc_config.h Fix menu warnings 2018-10-18 00:06:31 +02:00
features.txt Fix build on IHIFI 800 and iBasso DX50 2019-08-14 16:48:43 +02:00
filetree.c filetree.c add checks for invalid file entries 2018-12-14 06:09:38 -06:00
filetree.h
filetypes.c AAC bitstream format files support 2018-12-22 20:12:10 -05:00
filetypes.h
fracmul.h
keyboard.h
language.c
language.h
logfdisp.c
logfdisp.h
main.c Comment details, typos 2020-05-24 14:31:15 +02:00
menu.c Bug fix menu -- general 2019-09-20 19:23:18 -05:00
menu.h Bug fix dynamic menus 2019-09-20 03:07:29 -05:00
misc.c Comment details, typos 2020-05-24 14:31:15 +02:00
misc.h FS#10311 -- Add beep when navigating to beginning or end of list. 2019-01-31 15:25:35 +01:00
mpeg.c
mpeg.h
onplay.c Fix minor issues introduced in fe95127 (Playlist playing time) 2019-02-04 02:31:07 +01:00
onplay.h FS#11711: Add ability to create bookmark from WPS hotkey 2019-01-02 17:35:48 +01:00
pcmbuf.c
pcmbuf.h
playback.c Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss) 2018-12-22 12:27:21 -06:00
playback.h Fix playback.c audio_track_count() warning 2018-10-18 09:57:20 -04:00
playlist.c Playlist Viewer Fix FS#13197 2020-05-20 18:41:58 +02:00
playlist.h Playlist Viewer Fix FS#13197 2020-05-20 18:41:58 +02:00
playlist_catalog.c Playlist rework 2019-08-18 10:18:31 -05:00
playlist_catalog.h
playlist_menu.h
playlist_viewer.c Playlist Viewer Fix FS#13197 2020-05-20 18:41:58 +02:00
playlist_viewer.h
plugin.c Improved reliability of runtime accounting and speaking it. 2019-08-06 04:47:20 +02:00
plugin.h Move get_codepage_name() back out of #ifdef HAVE_LCD_BITMAP 2019-07-20 22:06:30 +02:00
rbcodec_helpers.c
rbcodecconfig.h
rbcodecplatform.h
README
root_menu.c Bug fix dynamic menus 2019-09-20 03:07:29 -05:00
root_menu.h
screen_access.c
screen_access.h
screens.c Improved reliability of runtime accounting and speaking it. 2019-08-06 04:47:20 +02:00
screens.h Fix menu warnings 2018-10-18 00:06:31 +02:00
scrobbler.c
scrobbler.h
settings.c Fix potential buffer overflow in settings.c 2019-01-08 03:44:32 +01:00
settings.h Fix build on non-RTC targets. 2019-07-20 13:00:30 -04:00
settings_list.c Fix build on non-RTC targets. 2019-07-20 13:00:30 -04:00
settings_list.h Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss) 2018-12-22 12:27:21 -06:00
shortcuts.c Enhanced shortcuts speech feedback 2019-08-13 13:08:33 +02:00
shortcuts.h
sound_menu.h Fix menu warnings 2018-10-18 00:06:31 +02:00
SOURCES obsolete: Nuke the very-incomplete Archos AV300 target 2020-04-13 22:06:22 +02:00
status.c
status.h
tagcache.c FS#9213 - Fix for audio dropout after startup 2019-08-20 13:17:23 +02:00
tagcache.h
tagnavi.config
tagtree.c tagtree add %reload to allow hot reloading of tagnavi config 2019-08-02 05:16:16 +02:00
tagtree.h Fix menu warnings 2018-10-18 00:06:31 +02:00
talk.c talk.h add failed to load splash 2020-05-22 07:52:01 -05:00
talk.h talk.h add init status to debug menu 2020-05-22 06:35:22 -05:00
tree.c Playlist rework 2019-08-18 10:18:31 -05:00
tree.h Fix tree.c->tree_get_entry_at() buffer overflow 2018-12-14 01:28:17 -06:00
usb_keymaps.c
usb_keymaps.h
voice_thread.c Get voice event out of playback.c 2017-12-12 20:28:56 -05:00
voice_thread.h

For general information see: docs/README
For API information see: docs/API