mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-08 15:55:46 +00:00
Fix operators for vfspath
This commit is contained in:
@@ -111,14 +111,7 @@ namespace Tesses::Framework::Filesystem
|
||||
{
|
||||
return VFSPath(p,p2);
|
||||
}
|
||||
VFSPath operator/(VFSPath p, std::string p2)
|
||||
{
|
||||
return VFSPath(p,p2);
|
||||
}
|
||||
VFSPath operator/(std::string p, VFSPath p2)
|
||||
{
|
||||
return VFSPath(p,p2);
|
||||
}
|
||||
|
||||
VFSPath operator+(VFSPath p, VFSPath p2)
|
||||
{
|
||||
VFSPath pout;
|
||||
@@ -146,14 +139,7 @@ namespace Tesses::Framework::Filesystem
|
||||
|
||||
return pout;
|
||||
}
|
||||
VFSPath operator+(VFSPath p, std::string p2)
|
||||
{
|
||||
return p + VFSPath(p2);
|
||||
}
|
||||
VFSPath operator+(std::string p, VFSPath p2)
|
||||
{
|
||||
return VFSPath(p) + p2;
|
||||
}
|
||||
|
||||
bool operator==(VFSPath p,VFSPath p2)
|
||||
{
|
||||
if(p.relative != p2.relative) return false;
|
||||
@@ -171,22 +157,6 @@ namespace Tesses::Framework::Filesystem
|
||||
return false;
|
||||
|
||||
}
|
||||
bool operator==(std::string p,VFSPath p2)
|
||||
{
|
||||
return VFSPath(p) == p2;
|
||||
}
|
||||
bool operator!=(std::string p,VFSPath p2)
|
||||
{
|
||||
return VFSPath(p) != p2;
|
||||
}
|
||||
bool operator==(VFSPath p,std::string p2)
|
||||
{
|
||||
return p == VFSPath(p2);
|
||||
}
|
||||
bool operator!=(VFSPath p,std::string p2)
|
||||
{
|
||||
return p != VFSPath(p2);
|
||||
}
|
||||
VFSPath VFS::ReadLink(VFSPath path)
|
||||
{
|
||||
return VFSPath("/");
|
||||
|
||||
Reference in New Issue
Block a user