Support and General Use > Plugins/Viewers
Lua script breaking changes Misc
(1/1)
Bilgus:
RB lua changesOLDNEWrb.strcasecmprb.strncasecmp(s1, s2)backlight_set_brightnessrb.backlight_brightness_set(brightness)rb.backlight_brightness_use_settingrb.backlight_brightness_set()buttonlight_set_brightnessrb.buttonlight_brightness_set(brightness)rb.buttonlight_brightness_use_settingrb.buttonlight_brightness_set()rb.mixer_set_frequencyrb.mixer_frequency(freq)rb.mixer_get_frequencyrb.mixer_frequency()rb.backlight_onrb.backlight_onoff(true)rb.backlight_offrb.backlight_onoff(false)rb.touchscreen_set_moderb.touchscreen_mode(mode)rb.touchscreen_get_moderb.touchscreen_mode()rb.trigger_cpu_boostrb.schedule_cpu_boost(true)rb.cancel_cpu_boostrb.schedule_cpu_boost(false)rb.utf16*REMOVEDrb.iso_decodeREMOVED
You can also add require("rbcompat")
to the top of your script to get the old functionality
(except the removed items)
Bilgus:
PCMOLDNEWrb.pcm_apply_settingsrb.pcm("apply_settings")rb.pcm("calculate_peaks")rb.pcm_play_stoprb.pcm("play_stop")rb.pcm_play_pauserb.pcm("play_pause", )rb.pcm_play_lockrb.pcm("play_lock")rb.pcm_play_unlockrb.pcm("play_unlock")rb.pcm_is_playingrb.pcm("is_playing")rb.pcm_is_pausedrb.pcm("is_paused",)rb.pcm_get_bytes_waitingrb.pcm("get_bytes_waiting")rb.pcm_set_frequencyrb.pcm("set_frequency", )
You can also add require("pcm")
to the top of your script to get the old functionality.
Bilgus:
OLDNEWAUDIOrb.audio_statusrb.audio("status")rb.audio("play",)rb.audio_stoprb.audio("stop")rb.audio_pauserb.audio("pause")rb.audio_resumerb.audio("resume")rb.audio_nextrb.audio("next")rb.audio_prevrb.audio("prev")rb.audio_ff_rewindrb.audio("ff_rewind",)rb.audio_flush_and_reload_tracksrb.audio("flush_and_reload_tracks")rb.audio_get_file_posrb.audio("get_file_pos")PLAYLISTrb.playlist_amountrb.playlist("amount")rb.playlist_addrb.playlist("add",)rb.playlist_createrb.playlist("create",)rb.playlist_startrb.playlist("start",)rb.playlist_resume_trackrb.playlist("resume_track",)rb.playlist_resumerb.playlist("resume")rb.playlist_shufflerb.playlist("shuffle",)rb.playlist_syncrb.playlist("sync")rb.playlist_remove_all_tracksrb.playlist("remove_all_tracks")rb.playlist_insert_trackrb.playlist("insert_track",)rb.playlist_insert_directoryrb.playlist("insert_directory",)
You can also add require("audio") and or require("playlist")
to the top of your script to get the old functionality.
The playlist include also includes playlist_tracks(dir, filename)
which will allow you to dump an existing playlist into a lua table
Navigation
[0] Message Index
Go to full version