- copied some CCMD improvements from Raze

* no longer uses copystring function.
* ability to dynamically register CCMDs.
This commit is contained in:
Christoph Oelckers 2020-04-11 18:04:07 +02:00
commit b7ff7302e5
4 changed files with 99 additions and 44 deletions

View file

@ -33,13 +33,13 @@
*/
class FConfigFile;
struct osdfuncparm_t;
struct CCmdFuncParm;
// Class that can parse command lines
class FCommandLine
{
friend int OSD_RegisterFunction(const char* pszName, const char* pszDesc, int (*func)(osdfuncparm_t const* const));
friend int C_RegisterFunction(const char* name, const char* help, int (*func)(CCmdFuncParm const* const));
public:
FCommandLine (const char *commandline, bool no_escapes = false);
~FCommandLine ();