コード例 #1
0
ファイル: IniFile.cpp プロジェクト: DigidragonZX/dolphin
bool IniFile::Get(const std::string& sectionName, const std::string& key, std::vector<std::string>* values)
{
	Section *section = GetSection(sectionName);
	if (!section)
		return false;
	return section->Get(key, values);
}
コード例 #2
0
ファイル: IniFile.cpp プロジェクト: DigidragonZX/dolphin
bool IniFile::Get(const std::string& sectionName, const std::string& key, bool* value, bool defaultValue)
{
	Section *section = GetSection(sectionName);
	if (!section) {
		*value = defaultValue;
		return false;
	} else {
		return section->Get(key, value, defaultValue);
	}
}
コード例 #3
0
ファイル: IniFile.cpp プロジェクト: Everscent/dolphin-emu
bool IniFile::Get(const char* sectionName, const char* key, u32* value, u32 defaultValue)
{
	Section *section = GetSection(sectionName);
	if (!section) {
		*value = defaultValue;
		return false;
	} else {
		return section->Get(key, value, defaultValue);
	}
}
コード例 #4
0
ファイル: IniFile.cpp プロジェクト: DigidragonZX/dolphin
bool IniFile::Get(const std::string& sectionName, const std::string& key, std::string* value, const std::string& defaultValue)
{
	Section* section = GetSection(sectionName);
	if (!section) {
		if (&defaultValue != &NULL_STRING) {
			*value = defaultValue;
		}
		return false;
	}
	return section->Get(key, value, defaultValue);
}
コード例 #5
0
ファイル: IniFile.cpp プロジェクト: Everscent/dolphin-emu
bool IniFile::Get(const char* sectionName, const char* key, std::string* value, const char* defaultValue)
{
	Section* section = GetSection(sectionName);
	if (!section) {
		if (defaultValue) {
			*value = defaultValue;
		}
		return false;
	}
	return section->Get(key, value, defaultValue);
}