[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:
sanctum32 2013-10-24 18:49:38 +03:00 committed by Antz
parent 7f4338f0d6
commit 08913b2437
6 changed files with 106 additions and 4 deletions

View file

@ -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;

View file

@ -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; }