diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-03 02:12:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-03 18:44:58 +0300 |
commit | 9e72886ee15acc39cbb6075ce32a60a5391ea9f3 (patch) | |
tree | fd7d0b05eeaed5ab0016cad58772cab7456f36b4 /src/being | |
parent | 49631972db5b965413d4bbe36983a8d5bd203183 (diff) | |
download | mv-9e72886ee15acc39cbb6075ce32a60a5391ea9f3.tar.gz mv-9e72886ee15acc39cbb6075ce32a60a5391ea9f3.tar.bz2 mv-9e72886ee15acc39cbb6075ce32a60a5391ea9f3.tar.xz mv-9e72886ee15acc39cbb6075ce32a60a5391ea9f3.zip |
Replace string::append with pathJoin.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 333e60d12..45aa67bac 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2671,7 +2671,7 @@ void Being::setSpriteId(const unsigned int slot, if (!filename.empty()) { equipmentSprite = AnimatedSprite::delayedLoad( - paths.getStringValue("sprites").append(filename)); + pathJoin(paths.getStringValue("sprites"), filename)); } if (equipmentSprite) @@ -2776,7 +2776,7 @@ void Being::setSpriteColor(const unsigned int slot, if (!filename.empty()) { equipmentSprite = AnimatedSprite::delayedLoad( - paths.getStringValue("sprites").append( + pathJoin(paths.getStringValue("sprites"), combineDye(filename, color))); } @@ -2856,7 +2856,7 @@ void Being::setSpriteColorId(const unsigned int slot, { color = info.getDyeColorsString(colorId); equipmentSprite = AnimatedSprite::delayedLoad( - paths.getStringValue("sprites").append( + pathJoin(paths.getStringValue("sprites"), combineDye(filename, color))); } @@ -2942,7 +2942,7 @@ void Being::setSpriteCards(const unsigned int slot, color = info.getDyeColorsString(colorId); equipmentSprite = AnimatedSprite::delayedLoad( - paths.getStringValue("sprites").append( + pathJoin(paths.getStringValue("sprites"), combineDye(filename, color))); } @@ -3034,7 +3034,7 @@ void Being::setTempSprite(const unsigned int slot, color = info.getDyeColorsString(colorId); equipmentSprite = AnimatedSprite::delayedLoad( - paths.getStringValue("sprites").append( + pathJoin(paths.getStringValue("sprites"), combineDye(filename, color))); } @@ -3107,7 +3107,7 @@ void Being::setHairTempSprite(const unsigned int slot, color = info.getDyeColorsString(colorId); equipmentSprite = AnimatedSprite::delayedLoad( - paths.getStringValue("sprites").append( + pathJoin(paths.getStringValue("sprites"), combineDye(filename, color))); } @@ -3179,7 +3179,7 @@ void Being::setSpriteColor(const unsigned int slot, if (!filename.empty()) { equipmentSprite = AnimatedSprite::delayedLoad( - paths.getStringValue("sprites").append( + pathJoin(paths.getStringValue("sprites"), combineDye(filename, color))); } @@ -3445,7 +3445,7 @@ void Being::setGender(const GenderT gender) restrict2 if (!filename.empty()) { equipmentSprite = AnimatedSprite::delayedLoad( - paths.getStringValue("sprites").append( + pathJoin(paths.getStringValue("sprites"), combineDye(filename, beingSlot.color))); } @@ -4557,7 +4557,7 @@ std::string Being::loadComment(const std::string &restrict name, return ""; } - str.append(stringToHexPath(name)).append("/comment.txt"); + str = pathJoin(str, stringToHexPath(name), "comment.txt"); if (Files::existsLocal(str)) { StringVect lines; @@ -4594,7 +4594,7 @@ void Being::saveComment(const std::string &restrict name, default: return; } - dir.append(stringToHexPath(name)); + dir = pathJoin(dir, stringToHexPath(name)); Files::saveTextFile(dir, "comment.txt", (name + "\n").append(comment)); |