summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/effectmanager.cpp
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2022-06-15 06:57:23 -0400
committer GitHub <noreply@github.com>2022-06-15 20:57:23 +1000
commit699630ed167692e6d8d953caadd228bbd87c19aa (patch)
tree3b85ee6f8ceb4bcc5e97419206bb89200185faf4 /src/osd/modules/render/bgfx/effectmanager.cpp
parentfe1e26a9fb437de24661a5cb16f82ec94cdb14fc (diff)
osdcore.h: Changed osd_subst_env to accept a std::string_view and return a std::string. (#9928)
Diffstat (limited to 'src/osd/modules/render/bgfx/effectmanager.cpp')
-rw-r--r--src/osd/modules/render/bgfx/effectmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/osd/modules/render/bgfx/effectmanager.cpp b/src/osd/modules/render/bgfx/effectmanager.cpp
index 98bc9a72097..8fc2899482a 100644
--- a/src/osd/modules/render/bgfx/effectmanager.cpp
+++ b/src/osd/modules/render/bgfx/effectmanager.cpp
@@ -31,8 +31,7 @@ static bool prepare_effect_document(std::string &name, osd_options &options, rap
full_name = full_name + ".json";
}
- std::string path;
- osd_subst_env(path, util::string_format("%s" PATH_SEPARATOR "effects" PATH_SEPARATOR, options.bgfx_path()));
+ std::string path = osd_subst_env(util::string_format("%s" PATH_SEPARATOR "effects" PATH_SEPARATOR, options.bgfx_path()));
path += full_name;
bx::FileReader reader;