From 7b72e6a872a82450796d7da65a290bab9c100ae3 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 28 May 2022 20:25:05 +0300 Subject: Autocommit at 28.05.2022 @ 20:25 --- src/Generic/ConsoleInterface/Command.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Generic/ConsoleInterface/Command.h') 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 -- cgit v1.3.1-26-gb76a