diff options
| author | Glenn Rice <glennricster@gmail.com> | 2011-02-28 20:40:15 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2011-02-28 20:40:15 +0000 |
| commit | ba54fac9eb74be6f73e20e2de953cf6f355be57f (patch) | |
| tree | ee496d869da4f8a7026b94991fe33f560cb9851a /Source/Core/AudioCommon/Src/AudioCommonConfig.cpp | |
| parent | 1b8f4760247934e3bac649d45a887d304b5eb724 (diff) | |
Convert GetUserPath to return a std::string instead of a const char *. This simplifies its usage in most cases.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7265 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon/Src/AudioCommonConfig.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/AudioCommonConfig.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/AudioCommon/Src/AudioCommonConfig.cpp b/Source/Core/AudioCommon/Src/AudioCommonConfig.cpp index b04ae01fd9..1ab4c261e2 100644 --- a/Source/Core/AudioCommon/Src/AudioCommonConfig.cpp +++ b/Source/Core/AudioCommon/Src/AudioCommonConfig.cpp @@ -28,7 +28,7 @@ SoundStream *soundStream; void AudioCommonConfig::Load() { IniFile file; - file.Load(std::string(File::GetUserPath(F_DSPCONFIG_IDX)).c_str()); + file.Load(File::GetUserPath(F_DSPCONFIG_IDX)); file.Get("Config", "EnableDTKMusic", &m_EnableDTKMusic, true); file.Get("Config", "EnableThrottle", &m_EnableThrottle, true); @@ -51,7 +51,7 @@ void AudioCommonConfig::Load() void AudioCommonConfig::SaveSettings() { IniFile file; - file.Load(std::string(File::GetUserPath(F_DSPCONFIG_IDX)).c_str()); + file.Load(File::GetUserPath(F_DSPCONFIG_IDX)); file.Set("Config", "EnableDTKMusic", m_EnableDTKMusic); file.Set("Config", "EnableThrottle", m_EnableThrottle); @@ -61,7 +61,7 @@ void AudioCommonConfig::SaveSettings() file.Set("Config", "Frequency", iFrequency); file.Set("Config", "Volume", m_Volume); - file.Save((std::string(File::GetUserPath(F_DSPCONFIG_IDX)).c_str())); + file.Save(File::GetUserPath(F_DSPCONFIG_IDX)); } // Update according to the values (stream/mixer) |
