From 51a9de3af37eb8a6844a2dd5f3f568f3956726db Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 24 Jun 2023 13:06:13 +1000 Subject: This is overkill --- source/core/StarAssetPath.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/core/StarAssetPath.cpp') 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) { -- cgit v1.2.3