Website Summary Files Commits Branches @commit @diff @stats
path: root / src / ConsoleInterface / Menu.cpp
diff options
context:
space:
mode:
1 files changed, 5 insertions, 3 deletions
-rw-r--r--src/ConsoleInterface/Menu.cpp8
diff --git a/src/ConsoleInterface/Menu.cpp b/src/ConsoleInterface/Menu.cpp
index 3df71ae..4112ed2 100644
--- a/src/ConsoleInterface/Menu.cpp
+++ b/src/ConsoleInterface/Menu.cpp
@@ -2,11 +2,13 @@
#include "Toolbox.hpp"
#include <cstring>
-Menu::Menu() : menuOptions() {
- strcpy(title, "Menu");
+Menu::Menu() : Menu("Menu") {}
+
+Menu::Menu(const char* title) : menuOptions() {
+ strcpy(this->title, title);
}
-Menu::Menu(const Command* commands, unsigned commandCount, const char* title) {
+Menu::Menu(const char* title, const Command* commands, unsigned commandCount) {
menuOptions = List<Command>(commands, commandCount);
strcpy(this->title, title);
}