MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / execCmd

Method execCmd

deps/physx/physx/samples/samplebase/SampleConsole.cpp:347–367  ·  view source on GitHub ↗

Try to execute a command

Source from the content-addressed store, hash-verified

345
346// Try to execute a command
347bool Console::execCmd(const char* cmd, const char* param)
348{
349 if(!cmd)
350 return false;
351
352 int HashIndex = cmd[0];
353 HashIndex = tolower(HashIndex);
354
355 ConsoleCommand* pcmd = mCmds[HashIndex];
356
357 while(pcmd)
358 {
359 if(Ps::stricmp(cmd, pcmd->fullcmd) == 0)
360 {
361 pcmd->function(this, param, mUserData);
362 return true;
363 }
364 else pcmd = pcmd->next;
365 }
366 return false;
367}
368
369// Destroy the console
370void Console::destroy()

Callers

nothing calls this directly

Calls 1

stricmpFunction · 0.85

Tested by

no test coverage detected