mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 19:37:07 +00:00
[12713] Implemented uint64/int64 config values support, fixed compile warnings related to max player money (and damn you git_id)
This commit is contained in:
parent
7f4338f0d6
commit
08913b2437
6 changed files with 106 additions and 4 deletions
|
|
@ -105,6 +105,12 @@ int32 Config::GetIntDefault(const char* name, int32 def)
|
|||
return GetValueHelper(mConf, name, val) ? atoi(val.c_str()) : def;
|
||||
}
|
||||
|
||||
int64 Config::GetInt64Default(const char* name, int64 def)
|
||||
{
|
||||
ACE_TString val;
|
||||
return GetValueHelper(mConf, name, val) ? atoi(val.c_str()) : def;
|
||||
}
|
||||
|
||||
float Config::GetFloatDefault(const char* name, float def)
|
||||
{
|
||||
ACE_TString val;
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ class MANGOS_DLL_SPEC Config
|
|||
std::string GetStringDefault(const char* name, const char* def);
|
||||
bool GetBoolDefault(const char* name, const bool def = false);
|
||||
int32 GetIntDefault(const char* name, const int32 def);
|
||||
int64 GetInt64Default(const char* name, const int64 def);
|
||||
float GetFloatDefault(const char* name, const float def);
|
||||
|
||||
std::string GetFilename() const { return mFilename; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue