diff options
Diffstat (limited to 'source/core/StarAssetPath.cpp')
-rw-r--r-- | source/core/StarAssetPath.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/core/StarAssetPath.cpp b/source/core/StarAssetPath.cpp index 3a6a83e..2100ee0 100644 --- a/source/core/StarAssetPath.cpp +++ b/source/core/StarAssetPath.cpp @@ -147,6 +147,10 @@ bool AssetPath::operator==(AssetPath const& rhs) const { return tie(basePath, subPath, directives) == tie(rhs.basePath, rhs.subPath, rhs.directives); } +AssetPath::AssetPath(String const& path) { + *this = move(AssetPath::split(path)); // split code should probably be in here, but whatever +} + std::ostream& operator<<(std::ostream& os, AssetPath const& rhs) { os << rhs.basePath; if (rhs.subPath) { |