diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-05-25 00:15:36 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-05-25 00:15:36 +0000 |
| commit | 75b7d5c767428f7061365a186cb17a22de4112cc (patch) | |
| tree | 46db9c129f3fa848a6ea084a31e01f2c59e67b2a /pokemod/Ini.cpp | |
| parent | 1a4b623c8ecb9d0c7d991312c12d78be4a68eff2 (diff) | |
| download | sigen-75b7d5c767428f7061365a186cb17a22de4112cc.tar.gz sigen-75b7d5c767428f7061365a186cb17a22de4112cc.tar.xz sigen-75b7d5c767428f7061365a186cb17a22de4112cc.zip | |
More modules PokéMod added
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@14 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Ini.cpp')
| -rw-r--r-- | pokemod/Ini.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pokemod/Ini.cpp b/pokemod/Ini.cpp index 5c75e64c..4b3d9eb6 100644 --- a/pokemod/Ini.cpp +++ b/pokemod/Ini.cpp @@ -57,6 +57,11 @@ void PokeGen::PokeMod::Ini::AddField(const String &n, const unsigned v) fields[n] = String("%u", v);
}
+void PokeGen::PokeMod::Ini::AddField(const String &n, const char *v)
+{
+ fields[n] = v;
+}
+
void PokeGen::PokeMod::Ini::AddField(const String &n, const String &v)
{
fields[n] = v;
@@ -77,7 +82,7 @@ PokeGen::PokeMod::String PokeGen::PokeMod::Ini::GetName() const return name;
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, int &val, int def) const
+void PokeGen::PokeMod::Ini::GetValue(const String &field, int &val, int def)
{
if (!fields.count(field))
{
@@ -90,7 +95,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, int &val, int def) con val = ((temp < INT_MIN) || (INT_MAX < temp) || *end) ? def : temp;
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, unsigned &val, unsigned def) const
+void PokeGen::PokeMod::Ini::GetValue(const String &field, unsigned &val, unsigned def)
{
if (!fields.count(field))
{
@@ -103,7 +108,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, unsigned &val, unsigne val = ((UINT_MAX < temp) || *end) ? def : temp;
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, String &val, const String &def) const
+void PokeGen::PokeMod::Ini::GetValue(const String &field, String &val, const String &def)
{
if (!fields.count(field))
{
@@ -113,7 +118,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, String &val, const Str val = fields[field];
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, bool &val, bool def) const
+void PokeGen::PokeMod::Ini::GetValue(const String &field, bool &val, bool def)
{
if (!fields.count(field))
{
@@ -128,7 +133,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, bool &val, bool def) c val = def;
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, double &val, double def) const
+void PokeGen::PokeMod::Ini::GetValue(const String &field, double &val, double def)
{
if (!fields.count(field))
{
|
