Cvars: Fix field orders and linux compilation
This commit is contained in:
parent
d75b14d4af
commit
1a5e1928ec
|
@ -80,19 +80,19 @@ struct CvarBound
|
||||||
{
|
{
|
||||||
CvarBound(bool hasMin_, float minVal_, bool hasMax_, float maxVal_, int minPluginId_, int maxPluginId_)
|
CvarBound(bool hasMin_, float minVal_, bool hasMax_, float maxVal_, int minPluginId_, int maxPluginId_)
|
||||||
:
|
:
|
||||||
hasMin(hasMin_), hasMax(hasMax_),
|
hasMin(hasMin_), minVal(minVal_),
|
||||||
minVal(minVal_), maxVal(maxVal_),
|
hasMax(hasMax_), maxVal(maxVal_),
|
||||||
minPluginId(minPluginId_),
|
minPluginId(minPluginId_),
|
||||||
maxPluginId(maxPluginId_) {};
|
maxPluginId(maxPluginId_) {};
|
||||||
|
|
||||||
CvarBound()
|
CvarBound()
|
||||||
:
|
:
|
||||||
hasMin(false), hasMax(false),
|
hasMin(false), minVal(0),
|
||||||
minVal(0), maxVal(0) {};
|
hasMax(false), maxVal(0) {};
|
||||||
|
|
||||||
bool hasMin;
|
bool hasMin;
|
||||||
bool hasMax;
|
|
||||||
float minVal;
|
float minVal;
|
||||||
|
bool hasMax;
|
||||||
float maxVal;
|
float maxVal;
|
||||||
int minPluginId;
|
int minPluginId;
|
||||||
int maxPluginId;
|
int maxPluginId;
|
||||||
|
@ -108,13 +108,13 @@ struct CvarInfo : public ke::InlineListNode<CvarInfo>
|
||||||
const char* plugin_, int pluginId_)
|
const char* plugin_, int pluginId_)
|
||||||
:
|
:
|
||||||
name(name_), description(helpText),
|
name(name_), description(helpText),
|
||||||
bound(hasMin_, min_, hasMax_, max_, pluginId_, pluginId_),
|
plugin(plugin_), pluginId(pluginId_),
|
||||||
plugin(plugin_), pluginId(pluginId_) {};
|
bound(hasMin_, min_, hasMax_, max_, pluginId_, pluginId_) {};
|
||||||
|
|
||||||
CvarInfo(const char* name_)
|
CvarInfo(const char* name_)
|
||||||
:
|
:
|
||||||
name(name_), defaultval(""), description(""),
|
name(name_), defaultval(""), description(""),
|
||||||
bound(), plugin(""), pluginId(-1), amxmodx(false) {};
|
plugin(""), pluginId(-1), bound(), amxmodx(false) {};
|
||||||
|
|
||||||
cvar_t* var;
|
cvar_t* var;
|
||||||
ke::AString name;
|
ke::AString name;
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__APPLE__)
|
#if defined(__linux__) || defined(__APPLE__)
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <unistd.h>
|
||||||
#ifndef PAGE_SIZE
|
#ifndef PAGE_SIZE
|
||||||
#define PAGE_SIZE 4096
|
#define PAGE_SIZE 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user