summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/effectmanager.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-04-23 16:48:52 +1000
committer Vas Crabb <vas@vastheman.com>2017-04-23 16:48:52 +1000
commit2e14f39a072ae5a7088baaddbcbd9de89c6a58ef (patch)
treecaf5e528630db68105c13821e562e01bb52325d7 /src/osd/modules/render/bgfx/effectmanager.cpp
parentb2fda77d3029968cfb0a2dec024b7e1632d4d047 (diff)
do variable substitution in bgfx_path #2201
Diffstat (limited to 'src/osd/modules/render/bgfx/effectmanager.cpp')
-rw-r--r--src/osd/modules/render/bgfx/effectmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osd/modules/render/bgfx/effectmanager.cpp b/src/osd/modules/render/bgfx/effectmanager.cpp
index 3affa36f2ec..8627650aae2 100644
--- a/src/osd/modules/render/bgfx/effectmanager.cpp
+++ b/src/osd/modules/render/bgfx/effectmanager.cpp
@@ -51,7 +51,9 @@ bgfx_effect* effect_manager::load_effect(std::string name)
if (full_name.length() < 5 || (full_name.compare(full_name.length() - 5, 5, ".json") != 0)) {
full_name = full_name + ".json";
}
- std::string path = std::string(m_options.bgfx_path()) + "/effects/" + full_name;
+ std::string path;
+ osd_subst_env(path, util::string_format("%s" PATH_SEPARATOR "effects" PATH_SEPARATOR, m_options.bgfx_path()));
+ path += full_name;
bx::CrtFileReader reader;
if (!bx::open(&reader, path.c_str()))