INNER CODE UNIT · C++

idLower

JuanDiegoMontoya/Gengine · src/engine/Console.cpp:96

      std::string idLower = lower(id->name.c_str());
      for (const Command& cmd : con->commands)
      {
        std::string cmdLower = lower(cmd.name.c_str());
        if (cmdLower.find(idLower) != std::string::npos)
        {
          commands.push_back(&cmd);
        }
      }

      for (const Command* cmd : commands)
      {
        Console::Get()->Log("%-25s %s", cmd->name.c_str(), cmd->description.c_str());
      }
    });
  RegisterCommand("Lua", "- Runs the following Lua code", [](const char*) { Console::Get()->Log("Lua code :)"); });
  RegisterCommand("set", "- Sets the value of a cvar", [](const char* args)
    {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…