1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

add ImageLocator::toString

This commit is contained in:
Ivan Savenko
2024-09-12 20:26:40 +00:00
parent 2d08e18f6a
commit 66a2c8dc37
2 changed files with 39 additions and 0 deletions

View File

@@ -46,4 +46,9 @@ struct ImageLocator
ImageLocator copyFile() const;
ImageLocator copyFileTransform() const;
ImageLocator copyFileTransformScale() const;
// generates string representation of this image locator
// guaranteed to be a valid file path with no extension
// but may contain '/' if source file is in directory
std::string toString() const;
};