void CGameSettings::LoadFromRegistry (void)

//	LoadFromRegistry
//
//	Load settings from the registry

	{
	//	Look for the reg key. If we can't find it, then
	//	don't worry about it (we'll take the defaults)

	CRegKey Key;
	if (CRegKey::OpenUserAppKey(REGISTRY_COMPANY_NAME,
			REGISTRY_PRODUCT_NAME,
			&Key) != NOERROR)
		return;

	//	Music

	CString sMusic;
	if (Key.FindStringValue(REGISTRY_MUSIC_OPTION, &sMusic))
		SetValueBoolean(noMusic, !strEquals(sMusic, CONSTLIT("on")), true);

	//	Volume

	CString sSoundVolume;
	if (Key.FindStringValue(REGISTRY_SOUND_VOLUME_OPTION, &sSoundVolume))
		SetValueInteger(soundVolume, Min(10, Max(0, strToInt(sSoundVolume, 10, NULL))), true);
	}