From ecf03c4beb6e6f76e8f0d6d91364153ae4013dc9 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 4 Oct 2022 18:39:13 -0400 Subject: pluginopts.cpp: Use path_concat utility function --- src/frontend/mame/pluginopts.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/mame/pluginopts.cpp b/src/frontend/mame/pluginopts.cpp index 19053c2ceab..89e05dc0ae0 100644 --- a/src/frontend/mame/pluginopts.cpp +++ b/src/frontend/mame/pluginopts.cpp @@ -10,7 +10,9 @@ #include "emu.h" #include "pluginopts.h" + #include "options.h" +#include "path.h" #include #include @@ -47,13 +49,12 @@ void plugin_options::scan_directory(const std::string &path, bool recursive) { if (entry->type == osd::directory::entry::entry_type::FILE && !strcmp(entry->name, "plugin.json")) { - std::string curfile = std::string(path).append(PATH_SEPARATOR).append(entry->name); - load_plugin(curfile); + load_plugin(util::path_concat(path, entry->name)); } else if (entry->type == osd::directory::entry::entry_type::DIR) { if (recursive && strcmp(entry->name, ".") && strcmp(entry->name, "..")) - scan_directory(path + PATH_SEPARATOR + entry->name, recursive); + scan_directory(util::path_concat(path, entry->name), recursive); } } } -- cgit v1.2.3