Commit 41e64b9
committed
Fix RMLui detection and graceful Chili fallback
Fixed two critical issues with RMLui integration:
1. **Incorrect RMLui detection**:
- api_sb_rmlui.lua:21 was checking `Spring.RmlUi` instead of `RmlUi`
- view.lua:6 had the same issue
- The global `RmlUi` is the correct API (matches rml_setup2.lua and dbg_dev_console_rmlui.lua)
2. **Broken Chili fallback**:
- rmlui_components.lua was loaded by IncludeDir during Chili fallback
- It tried to extend RmlUiEditorBase without checking if it exists
- Added guards to return early if RMLui base classes aren't loaded
This ensures SpringBoard gracefully falls back to Chili UI when RMLui is not available.1 parent 6343459 commit 41e64b9
File tree
3 files changed
+12
-3
lines changed- LuaUI/widgets
- scen_edit/view
3 files changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
175 | 180 | | |
176 | 181 | | |
177 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments