Support parsing config values as u32 in preparation of D1513, refs #5163.
Differential Revision: https://code.wildfiregames.com/D1566 Reviewed By: Vladislav This was SVN commit r21840.
This commit is contained in:
parent
8e168f85e6
commit
8ae179aaae
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
/* Copyright (C) 2018 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -110,6 +110,7 @@ std::string EscapeString(const CStr& str)
|
||||
}
|
||||
GETVAL(bool)
|
||||
GETVAL(int)
|
||||
GETVAL(u32)
|
||||
GETVAL(float)
|
||||
GETVAL(double)
|
||||
GETVAL(std::string)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
/* Copyright (C) 2018 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -66,6 +66,8 @@ public:
|
||||
///@copydoc CConfigDB::GetValue
|
||||
void GetValue(EConfigNamespace ns, const CStr& name, int& value);
|
||||
///@copydoc CConfigDB::GetValue
|
||||
void GetValue(EConfigNamespace ns, const CStr& name, u32& value);
|
||||
///@copydoc CConfigDB::GetValue
|
||||
void GetValue(EConfigNamespace ns, const CStr& name, float& value);
|
||||
///@copydoc CConfigDB::GetValue
|
||||
void GetValue(EConfigNamespace ns, const CStr& name, double& value);
|
||||
|
Loading…
Reference in New Issue
Block a user