Merge branch 'forwardtothepast' into 'master'

Support /-separated big effect icon paths

See merge request OpenMW/openmw!2711
7220-lua-add-a-general-purpose-lexical-parser
psi29a 2 years ago
commit 5eba755174

@ -416,6 +416,7 @@ namespace MWGui
spell->mEffects.mList.front().mEffectID);
std::string icon = effect->mIcon;
std::replace(icon.begin(), icon.end(), '/', '\\');
int slashPos = icon.rfind('\\');
icon.insert(slashPos + 1, "b_");
icon = Misc::ResourceHelpers::correctIconPath(icon, MWBase::Environment::get().getResourceSystem()->getVFS());

@ -302,6 +302,7 @@ namespace MWGui
const ESM::MagicEffect* effect = esmStore.get<ESM::MagicEffect>().find(spell->mEffects.mList.front().mEffectID);
std::string path = effect->mIcon;
std::replace(path.begin(), path.end(), '/', '\\');
int slashPos = path.rfind('\\');
path.insert(slashPos + 1, "b_");
path = Misc::ResourceHelpers::correctIconPath(path, MWBase::Environment::get().getResourceSystem()->getVFS());

Loading…
Cancel
Save