<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rockbox/apps/plugins/lua/include_lua/rbcompat.lua, branch wolf3d</title>
<subtitle>My Rockbox tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/'/>
<entry>
<title>Lua optimize combine and rework similar functions</title>
<updated>2018-11-02T17:00:06+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-11-01T18:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=f6e10b84882387e304467f22ea2f6126cbaa1264'/>
<id>f6e10b84882387e304467f22ea2f6126cbaa1264</id>
<content type='text'>
rb.strncasecmp
    strcasecmp just exclude count -&gt; rb.strncasecmp(s1, s2)

rb.backlight_brightness_set
    backlight_set_brightness -- redundant
    rb.backlight_brightness_use_setting -&gt; rb.backlight_brightness_set()

rb.buttonlight_brightness_set
    buttonlight_set_brightness -- redundant
    rb.buttonlight_brightness_use_setting -&gt; rb.buttonlight_brightness_set()

rb.mixer_frequency
    rb.mixer_set_frequency -&gt; mixer_frequency(freq)
    rb.mixer_get_frequency -&gt; mixer_frequency

rb.backlight_onoff
    rb.backlight_on  -&gt; rb.backlight_onoff(true)
    rb.backlight_off -&gt; rb.backlight_onoff(false)

rb.touchscreen_mode
    rb.touchscreen_set_mode -&gt; rb.touchscreen_mode(mode)
    rb.touchscreen_get_mode -&gt; rb.touchscreen_mode()

rb.schedule_cpu_boost
    rb.trigger_cpu_boost -&gt; rb.schedule_cpu_boost(true)
    rb.cancel_cpu_boost -&gt; 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rb.strncasecmp
    strcasecmp just exclude count -&gt; rb.strncasecmp(s1, s2)

rb.backlight_brightness_set
    backlight_set_brightness -- redundant
    rb.backlight_brightness_use_setting -&gt; rb.backlight_brightness_set()

rb.buttonlight_brightness_set
    buttonlight_set_brightness -- redundant
    rb.buttonlight_brightness_use_setting -&gt; rb.buttonlight_brightness_set()

rb.mixer_frequency
    rb.mixer_set_frequency -&gt; mixer_frequency(freq)
    rb.mixer_get_frequency -&gt; mixer_frequency

rb.backlight_onoff
    rb.backlight_on  -&gt; rb.backlight_onoff(true)
    rb.backlight_off -&gt; rb.backlight_onoff(false)

rb.touchscreen_mode
    rb.touchscreen_set_mode -&gt; rb.touchscreen_mode(mode)
    rb.touchscreen_get_mode -&gt; rb.touchscreen_mode()

rb.schedule_cpu_boost
    rb.trigger_cpu_boost -&gt; rb.schedule_cpu_boost(true)
    rb.cancel_cpu_boost -&gt; 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
</pre>
</div>
</content>
</entry>
</feed>
