1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00

Codechange: Use std::string in console commands/aliases registration, and std::map instead our sorted linked list (#9057)

* Codechange: Use std::string in console commands and aliases registration

* Codechange: Use std::map to register console commands

* Codechange: Use std::map to register console aliases

* Cleanup: Remove now unused function
This commit is contained in:
Loïc Guilloux
2021-04-24 15:19:57 +02:00
committed by GitHub
parent d0e40ab314
commit 888389c28d
4 changed files with 182 additions and 228 deletions

View File

@@ -1142,7 +1142,7 @@ static void RegisterConsoleMidiCommands()
{
static bool registered = false;
if (!registered) {
IConsoleCmdRegister("dumpsmf", CmdDumpSMF);
IConsole::CmdRegister("dumpsmf", CmdDumpSMF);
registered = true;
}
}