|
|
|
@ -32,14 +32,13 @@ extern "C" CVar * CVar_Get(const char* name);
|
|
|
|
|
extern "C"
|
|
|
|
|
{
|
|
|
|
|
#endif
|
|
|
|
|
//#include <ultra64.h>
|
|
|
|
|
|
|
|
|
|
int32_t CVar_GetS32(const char* name, int32_t defaultValue);
|
|
|
|
|
float CVar_GetFloat(const char* name, float defaultValue);
|
|
|
|
|
void CVar_SetFloat(const char* name, float value);
|
|
|
|
|
const char* CVar_GetString(const char* name, const char* defaultValue);
|
|
|
|
|
void CVar_SetS32(const char* name, int32_t value);
|
|
|
|
|
void CVar_SetString(const char* name, const char* value);
|
|
|
|
|
|
|
|
|
|
Color_RGB8 CVar_GetRGB(const char* name, Color_RGB8 defaultValue);
|
|
|
|
|
Color_RGBA8 CVar_GetRGBA(const char* name, Color_RGBA8 defaultValue);
|
|
|
|
|
void CVar_SetRGBA(const char* name, Color_RGBA8 value);
|
|
|
|
@ -56,11 +55,8 @@ void CVar_RegisterRGBA(const char* name, Color_RGBA8 defaultValue);
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <functional>
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
//extern "C" CVar * CVar_Get(const char* name);
|
|
|
|
|
extern std::map<std::string, std::unique_ptr<CVar>, std::less<>> cvars;
|
|
|
|
|
void CVar_SetFloat(const char* name, float value);
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|