| 747 | } |
| 748 | |
| 749 | CoreProviderImpl::CommandImpl::~CommandImpl() |
| 750 | { |
| 751 | hook_ = nullptr; |
| 752 | |
| 753 | g_SMAPI->UnregisterConCommandBase(g_PLAPI, cmd_); |
| 754 | delete [] const_cast<char *>(cmd_->GetHelpText()); |
| 755 | delete [] const_cast<char *>(cmd_->GetName()); |
| 756 | delete cmd_; |
| 757 | } |
| 758 | |
| 759 | void |
| 760 | CoreProviderImpl::DefineCommand(const char *name, const char *help, const CommandFunc &callback) |