aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/livingbooks_lbx.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-08 16:22:08 +0200
committerJohannes Schickel2013-08-08 16:28:38 +0200
commit63750d678068aa92ee95dc9de2b2908a983b489d (patch)
treec2369e4b10f348448566bce633e6cdb11a8c7130 /engines/mohawk/livingbooks_lbx.cpp
parent6e5c308b91031b8b7ae2dc5dd87bb4c2bc20ad81 (diff)
downloadscummvm-rg350-63750d678068aa92ee95dc9de2b2908a983b489d.tar.gz
scummvm-rg350-63750d678068aa92ee95dc9de2b2908a983b489d.tar.bz2
scummvm-rg350-63750d678068aa92ee95dc9de2b2908a983b489d.zip
COMMON: Rename ConfigFile to INIFile.
This clears up that 'ConfigFile' is actually a class handling only INI-files.
Diffstat (limited to 'engines/mohawk/livingbooks_lbx.cpp')
-rw-r--r--engines/mohawk/livingbooks_lbx.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/mohawk/livingbooks_lbx.cpp b/engines/mohawk/livingbooks_lbx.cpp
index 2b8b22ec81..dcf8caa4a5 100644
--- a/engines/mohawk/livingbooks_lbx.cpp
+++ b/engines/mohawk/livingbooks_lbx.cpp
@@ -33,7 +33,7 @@ public:
bool call(uint callId, const Common::Array<LBValue> &params, LBValue &result);
protected:
- Common::ConfigFile _dataFile;
+ Common::INIFile _dataFile;
Common::String _curSection;
void open(const Common::String &filename);
@@ -77,8 +77,8 @@ bool LBXDataFile::call(uint callId, const Common::Array<LBValue> &params, LBValu
case kLBXDataFileGetSectionList:
{
Common::SharedPtr<LBList> list = Common::SharedPtr<LBList>(new LBList);
- Common::ConfigFile::SectionList sections = _dataFile.getSections();
- for (Common::List<Common::ConfigFile::Section>::const_iterator i = sections.begin(); i != sections.end(); ++i)
+ Common::INIFile::SectionList sections = _dataFile.getSections();
+ for (Common::List<Common::INIFile::Section>::const_iterator i = sections.begin(); i != sections.end(); ++i)
list->array.push_back(LBValue(i->name));
result = LBValue(list);
}
@@ -103,8 +103,8 @@ bool LBXDataFile::call(uint callId, const Common::Array<LBValue> &params, LBValu
error("incorrect number of parameters (%d) to LBXDataFile::loadCurSectionVars", params.size());
{
- const Common::ConfigFile::SectionKeyList globals = _dataFile.getKeys(_curSection);
- for (Common::ConfigFile::SectionKeyList::const_iterator i = globals.begin(); i != globals.end(); i++) {
+ const Common::INIFile::SectionKeyList globals = _dataFile.getKeys(_curSection);
+ for (Common::INIFile::SectionKeyList::const_iterator i = globals.begin(); i != globals.end(); i++) {
Common::String command = Common::String::format("%s = %s", i->key.c_str(), i->value.c_str());
LBCode tempCode(_vm, 0);
uint offset = tempCode.parseCode(command);