logic: code view asset fix
Fixed asset paths for code view
This commit is contained in:
@@ -102,6 +102,18 @@ namespace utility
|
||||
else if (val == "gui_path")
|
||||
{
|
||||
val = ResourcePaths::getGuiPath();
|
||||
|
||||
size_t index = 0;
|
||||
while (true)
|
||||
{
|
||||
index = val.find("\\", index);
|
||||
if (index == std::string::npos)
|
||||
{
|
||||
break;
|
||||
}
|
||||
val.replace(index, 1, "/");
|
||||
index += 3;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user