summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/lua.make
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-11-01 14:20:33 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2018-11-02 18:00:06 +0100
commitf6e10b84882387e304467f22ea2f6126cbaa1264 (patch)
tree1dd56d2d7d524abd66ce286968d83b2b2302500e /apps/plugins/lua/lua.make
parentbb025e3962225491785cc8e73e89190adbacaa4e (diff)
downloadrockbox-f6e10b84882387e304467f22ea2f6126cbaa1264.tar.gz
rockbox-f6e10b84882387e304467f22ea2f6126cbaa1264.tar.bz2
rockbox-f6e10b84882387e304467f22ea2f6126cbaa1264.zip
Lua optimize combine and rework similar functions
rb.strncasecmp strcasecmp just exclude count -> rb.strncasecmp(s1, s2) rb.backlight_brightness_set backlight_set_brightness -- redundant rb.backlight_brightness_use_setting -> rb.backlight_brightness_set() rb.buttonlight_brightness_set buttonlight_set_brightness -- redundant rb.buttonlight_brightness_use_setting -> rb.buttonlight_brightness_set() rb.mixer_frequency rb.mixer_set_frequency -> mixer_frequency(freq) rb.mixer_get_frequency -> mixer_frequency rb.backlight_onoff rb.backlight_on -> rb.backlight_onoff(true) rb.backlight_off -> rb.backlight_onoff(false) rb.touchscreen_mode rb.touchscreen_set_mode -> rb.touchscreen_mode(mode) rb.touchscreen_get_mode -> rb.touchscreen_mode() rb.schedule_cpu_boost rb.trigger_cpu_boost -> rb.schedule_cpu_boost(true) rb.cancel_cpu_boost -> rb.schedule_cpu_boost(false) Includes rbcompat.lua for backwards compatibility if your script is broken by this change you simply add `require("rbcompat")` to the top for the old functionality Change-Id: Ibffd79a0d9be6d7d6a65cc4af5c0a1c6a0f3f94d
Diffstat (limited to 'apps/plugins/lua/lua.make')
-rw-r--r--apps/plugins/lua/lua.make3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make
index 56df860545..a464bddace 100644
--- a/apps/plugins/lua/lua.make
+++ b/apps/plugins/lua/lua.make
@@ -17,8 +17,7 @@ OTHER_SRC += $(LUA_SRC)
LUA_INCLUDEDIR := $(LUA_SRCDIR)/include_lua
LUA_INCLUDELIST := $(addprefix $(LUA_BUILDDIR)/,audio.lua blit.lua color.lua draw.lua \
- image.lua lcd.lua math_ex.lua print.lua \
- timer.lua playlist.lua pcm.lua)
+ image.lua lcd.lua math_ex.lua print.lua timer.lua playlist.lua pcm.lua rbcompat.lua)
ifndef APP_TYPE