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 Fix reds. 2014-03-14 23:43:45 +01:00
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 ab_repeat: Move GUI bits to the skin engine. This allows ab_repeat to be compiled headless. 2014-03-10 22:55:26 +01:00
abrepeat.h ab_repeat: Move GUI bits to the skin engine. This allows ab_repeat to be compiled headless. 2014-03-10 22:55:26 +01:00
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 Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
beep.c Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
bookmark.c bookmark: #pragma diagnostic push/pop requires GCC >= 4.6 2020-05-18 03:56:49 +02:00
bookmark.h Fix minor bookmark problems/Enhance bookmark functions 2012-03-12 08:54:02 +01:00
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 Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
codecs.c Rewrite filesystem code (WIP) 2014-08-30 03:48:23 +02:00
core_asmdefs.c
cuesheet.c Fix Truncation warning in cuesheet.c->browse_cuesheet 2018-12-08 04:47:27 -06:00
cuesheet.h Implements starting playback from a cuesheet. 2014-03-10 04:13:53 +01:00
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 Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR. 2011-12-19 20:12:52 +00:00
fracmul.h Build librbcodec with DSP and metadata. 2012-03-18 12:00:39 +01:00
keyboard.h
language.c
language.h
logfdisp.c Don't add new message to logf when we dump it to file 2016-04-04 11:07:44 +02:00
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 Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
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 Fix a problem with audio not starting on a list of short files 2017-04-06 19:32:35 -04:00
pcmbuf.h Fix a problem with audio not starting on a list of short files 2017-04-06 19:32:35 -04:00
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 Rename HAVE_PITCHSCREEN to HAVE_PITCHCONTROL 2012-05-09 14:32:38 +02:00
rbcodecconfig.h kernel: Break out kernel primitives into separate files and move to separate dir. 2014-03-03 18:11:57 +01:00
rbcodecplatform.h rbcodec: abstract tdspeed buffer allocation 2012-05-07 10:29:07 +02:00
README
root_menu.c Bug fix dynamic menus 2019-09-20 03:07:29 -05:00
root_menu.h root_menu: Remove previous_music_is_wps() and change previous_music via event callback. 2014-04-15 23:54:28 +02:00
screen_access.c Fix put_line via multiscreen API on remotes. Stupid me. 2014-01-08 10:45:00 +01:00
screen_access.h put_line/scrolling: Make the scroll engine inform custom scrollers about start/stop of scrolling. 2014-01-12 01:34:06 +01:00
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 iBasso DX50/DX90: Major code cleanup and reorganization. 2015-02-02 21:57:55 +01:00
scrobbler.h Get rid of some superfluous single-purpose functions in playback. 2013-07-13 00:08:51 -04:00
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 shortcuts: talk the time and configure the sleep timeout 2011-12-08 10:23:46 +00:00
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 Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
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 remove superfluous ifdef 2011-12-28 19:23:38 +00:00
usb_keymaps.h
voice_thread.c Get voice event out of playback.c 2017-12-12 20:28:56 -05:00
voice_thread.h voice_thread_init was left INIT_ATTR but is being called too late. 2012-05-21 15:21:36 -04:00

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