| 6 | #include <algorithm> // for std::sort |
| 7 | |
| 8 | void ScriptsMenu::optionsMenu() { |
| 9 | #if !defined(LITE_VERSION) && !defined(DISABLE_INTERPRETER) |
| 10 | if (interpreter_state >= 0) { |
| 11 | interpreter_state = 1; |
| 12 | returnToMenu = true; |
| 13 | return; |
| 14 | } |
| 15 | |
| 16 | options = getScriptsOptionsList("", false); |
| 17 | |
| 18 | options.push_back({"Load...", run_bjs_script}); |
| 19 | addOptionToMainMenu(); |
| 20 | |
| 21 | loopOptions(options, MENU_TYPE_SUBMENU, "Scripts"); |
| 22 | #endif |
| 23 | } |
| 24 | |
| 25 | void ScriptsMenu::drawIcon(float scale) { |
| 26 | clearIconArea(); |
nothing calls this directly
no test coverage detected