ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <emi_registry.h>

Collaboration diagram for Grim::EmiRegistry:

List of all members.

Public Member Functions

 EmiRegistry ()
 ~EmiRegistry ()
bool Get (const Common::String key, float &res) const
void Set (const Common::String key, float &value)

Private Types

typedef Common::HashMap
< Common::String, bool,
Common::IgnoreCase_Hash
StringSet

Private Member Functions

uint convertVolumeToMixer (uint volume) const
uint convertVolumeFromMixer (uint volume) const
uint convertTalkSpeedToGUI (uint talkspeed) const
uint convertTalkSpeedFromGUI (uint talkspeed) const
bool convertSubtitlesToGUI (uint speechmode) const
bool convertSpeechMuteToGUI (uint speechmode) const
uint convertSpeechModeFromGUI (bool subtitles, bool speechMute) const
const Common::String convertGammaToRegistry (float gamma) const
float convertGammaFromRegistry (const Common::String &gamma) const

Private Attributes

Common::StringMap _transMap
StringSet _boolSet

Static Private Attributes

static const char * _boolValues []
static const char * _translTable [][2]

Detailed Description

Definition at line 32 of file emi_registry.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Grim::EmiRegistry::EmiRegistry (  ) 

Definition at line 65 of file emi_registry.cpp.

Grim::EmiRegistry::~EmiRegistry (  )  [inline]

Definition at line 35 of file emi_registry.h.


Member Function Documentation

float Grim::EmiRegistry::convertGammaFromRegistry ( const Common::String gamma  )  const [private]

Definition at line 91 of file emi_registry.cpp.

const Common::String Grim::EmiRegistry::convertGammaToRegistry ( float  gamma  )  const [private]

Definition at line 87 of file emi_registry.cpp.

uint Grim::EmiRegistry::convertSpeechModeFromGUI ( bool  subtitles,
bool  speechMute 
) const [private]

Definition at line 107 of file emi_registry.cpp.

bool Grim::EmiRegistry::convertSpeechMuteToGUI ( uint  speechmode  )  const [private]
bool Grim::EmiRegistry::convertSubtitlesToGUI ( uint  speechmode  )  const [private]
uint Grim::EmiRegistry::convertTalkSpeedFromGUI ( uint  talkspeed  )  const [private]

Definition at line 83 of file emi_registry.cpp.

uint Grim::EmiRegistry::convertTalkSpeedToGUI ( uint  talkspeed  )  const [private]

Definition at line 79 of file emi_registry.cpp.

uint Grim::EmiRegistry::convertVolumeFromMixer ( uint  volume  )  const [private]

Definition at line 102 of file emi_registry.cpp.

uint Grim::EmiRegistry::convertVolumeToMixer ( uint  volume  )  const [private]

Definition at line 97 of file emi_registry.cpp.

bool Grim::EmiRegistry::Get ( const Common::String  key,
float &  res 
) const

Definition at line 119 of file emi_registry.cpp.

void Grim::EmiRegistry::Set ( const Common::String  key,
float &  value 
)

Definition at line 154 of file emi_registry.cpp.


Member Data Documentation

Definition at line 54 of file emi_registry.h.

const char * Grim::EmiRegistry::_boolValues [static, private]
Initial value:
 {
    "joystick_enabled",
    "analog_mode",
    "subtitles",
    "camera_mode",
    "vocfx",
    "moviequality",
    "musicquality",
    nullptr
}

Definition at line 56 of file emi_registry.h.

const char * Grim::EmiRegistry::_translTable [static, private]
Initial value:
 {
    {"speech_mode",     ""},    
    {"vocvolume",       "speech_volume"},
    {"sfxvolume",       "sfx_volume"},
    {"musvolume",       "music_volume"},
    {"textspeed",       "talkspeed"},
    {"gamma",           "gamma"},
    {"joystick_enabled","joystick_enabled"},
    {"analog_mode",     "analog_joystick_mode"},
    {"subtitles",       "movie_subtitles"},
    {"camera_mode",     "camera_relative_mode"},
    {"shadowfx",        "shadow_effects"},
    {"vocfx",           "audio_effects"},
    {"miscfx",          "misc_video_effects"},
    {"moviequality",    "movie_quality"},
    {"musicquality",    "music_quality"},
    {nullptr,nullptr}
}

Definition at line 57 of file emi_registry.h.

Definition at line 53 of file emi_registry.h.


The documentation for this class was generated from the following files:


Generated on Sat Jan 19 2019 05:06:23 for ResidualVM by doxygen 1.7.1
curved edge   curved edge