Merge pull request #9 from CyB3RC0nN0R/paging
Now supporting single Arguments
This commit is contained in:
commit
ce09ea09e6
2
menu.c
2
menu.c
@ -63,7 +63,7 @@ void show_menu(const struct MenuPage* pages, const size_t page_count, const bool
|
||||
{
|
||||
// Perform action
|
||||
system("cls");
|
||||
pages[page_index].items[i].action();
|
||||
pages[page_index].items[i].action(pages[page_index].items[i].param);
|
||||
action_performed = true;
|
||||
|
||||
// Pause if requested
|
||||
|
Reference in New Issue
Block a user