mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-11-04 00:07:19 +01:00 
			
		
		
		
	Fixed the SysPath type returning wrong result in test emptiness.
Added the option to build the path as a string using a speciffic style.
This commit is contained in:
		@@ -1665,6 +1665,8 @@ void Register_SysPath(HSQUIRRELVM vm)
 | 
			
		||||
        .Func(_SC("Clear"), &SysPath::Clear)
 | 
			
		||||
        .Func< SysPath & (SysPath::*)(const SysPath &) >(_SC("AssignPath"), &SysPath::Assign)
 | 
			
		||||
        .Func< SysPath & (SysPath::*)(const SysPath &) >(_SC("AppendPath"), &SysPath::Append)
 | 
			
		||||
        .Func(_SC("Build"), &SysPath::ToStr)
 | 
			
		||||
        .Func(_SC("ToStr"), &SysPath::ToStr)
 | 
			
		||||
        .Func(_SC("MakeDir"), &SysPath::MakeDirectory)
 | 
			
		||||
        .Func(_SC("MakeDirectory"), &SysPath::MakeDirectory)
 | 
			
		||||
        .Func(_SC("MakeFile"), &SysPath::MakeFile)
 | 
			
		||||
 
 | 
			
		||||
@@ -330,7 +330,7 @@ public:
 | 
			
		||||
    */
 | 
			
		||||
    bool Empty() const
 | 
			
		||||
    {
 | 
			
		||||
        return (!m_Dirs.empty() || !m_Name.empty() || m_Drive != 0);
 | 
			
		||||
        return (m_Dirs.empty() && m_Name.empty() && m_Drive == 0);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user