diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-24 13:06:13 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-24 13:06:13 +1000 |
commit | 51a9de3af37eb8a6844a2dd5f3f568f3956726db (patch) | |
tree | 66500bbc587a585bfd5490f916239a02d5859769 /source/core/StarAssetPath.cpp | |
parent | 2798d4bf668d74028b5c1f88ae5b7b25cd08de2d (diff) |
This is overkill
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) { |