diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-11-01 14:20:33 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-11-02 18:00:06 +0100 |
commit | f6e10b84882387e304467f22ea2f6126cbaa1264 (patch) | |
tree | 1dd56d2d7d524abd66ce286968d83b2b2302500e /firmware/target/hosted | |
parent | bb025e3962225491785cc8e73e89190adbacaa4e (diff) | |
download | rockbox-f6e10b84882387e304467f22ea2f6126cbaa1264.tar.gz 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 'firmware/target/hosted')
0 files changed, 0 insertions, 0 deletions