2022-01-10 01:20:44 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CCommandLine // VTABLE @0x141369C78 in R5pc_r5launch_N1094_CL456479_2019_10_30_05_20_PM
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void CreateCmdLine(const char* pszCommandline);
|
|
|
|
void CreateCmdLine(int argc, char** argv);
|
|
|
|
void CreatePool(void* pMem);
|
|
|
|
const char* GetCmdLine(void);
|
2022-01-10 02:47:19 +01:00
|
|
|
const char* CheckParm(const char* psz, const char** ppszValue = NULL);
|
2022-01-10 01:20:44 +01:00
|
|
|
void RemoveParm(void);
|
|
|
|
void AppendParm(const char* pszParm, const char* pszValues);
|
2022-01-10 02:47:19 +01:00
|
|
|
const char* ParmValue(const char* psz, const char* pDefaultVal = NULL);
|
2022-01-10 01:20:44 +01:00
|
|
|
int ParmValue(const char* psz, int nDefaultVal);
|
|
|
|
float ParmValue(const char* psz, float flDefaultVal);
|
|
|
|
int ParmCount(void);
|
|
|
|
int FindParm(const char* psz);
|
|
|
|
const char* GetParm(int nIndex);
|
|
|
|
void SetParm(int nIndex, char const* pParm);
|
|
|
|
};
|
|
|
|
extern CCommandLine* g_pCmdLine;
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
class HCommandLine : public IDetour
|
|
|
|
{
|
|
|
|
virtual void debugp()
|
|
|
|
{
|
|
|
|
std::cout << "| VAR: g_pCmdLine : 0x" << std::hex << std::uppercase << g_pCmdLine << std::setw(0) << " |" << std::endl;
|
|
|
|
std::cout << "+----------------------------------------------------------------+" << std::endl;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
REGISTER(HCommandLine);
|