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/Plugins/Plugin_VideoOGL/Src/main.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/Plugins/Plugin_VideoOGL/Src/main.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index 01989efc94..ca014dbb76 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -108,10 +108,10 @@ std::string VideoBackend::GetName() void GetShaders(std::vector<std::string> &shaders) { shaders.clear(); - if (File::IsDirectory(File::GetUserPath(D_SHADERS_IDX))) + if (File::IsDirectory(File::GetUserPath(D_SHADERS_IDX).c_str())) { File::FSTEntry entry; - File::ScanDirectoryTree(File::GetUserPath(D_SHADERS_IDX), entry); + File::ScanDirectoryTree(File::GetUserPath(D_SHADERS_IDX).c_str(), entry); for (u32 i = 0; i < entry.children.size(); i++) { std::string name = entry.children[i].virtualName.c_str(); @@ -122,7 +122,7 @@ void GetShaders(std::vector<std::string> &shaders) } else { - File::CreateDir(File::GetUserPath(D_SHADERS_IDX)); + File::CreateDir(File::GetUserPath(D_SHADERS_IDX).c_str()); } } @@ -163,7 +163,7 @@ bool VideoBackend::Initialize(void *&window_handle) frameCount = 0; - g_Config.Load((std::string(File::GetUserPath(D_CONFIG_IDX)) + "gfx_opengl.ini").c_str()); + g_Config.Load((File::GetUserPath(D_CONFIG_IDX) + "gfx_opengl.ini").c_str()); g_Config.GameIniLoad(SConfig::GetInstance().m_LocalCoreStartupParameter.m_strGameIni.c_str()); g_Config.UpdateProjectionHack(); |
