diff options
Autocommit at 28.05.2022 @ 20:25
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | src/Generic/ConsoleInterface/Command.h | 8 |
diff --git a/src/Generic/ConsoleInterface/Command.h b/src/Generic/ConsoleInterface/Command.h index f1eb55b..8e40955 100644 --- a/src/Generic/ConsoleInterface/Command.h +++ b/src/Generic/ConsoleInterface/Command.h @@ -10,18 +10,18 @@ * Menu uses this class for a more generic implementation of it's navigate function. */ class Command { - char nameInMenu[256]; - void (*exec)(); + char name[256]; + void (*exec)(const char* params); public: //! Leaves name empty and exec function pointer to nullptr Command(); //! Copies contents of nameInMenu and stores exec - Command(const char* nameInMenu, void (*exec)()); + Command(const char* name, void (*exec)(const char* params)); //! Executes the stored function pointer void run() const; - const char* get_nameInMenu() const; + const char* get_name() const; }; #endif |
