Fix regression in win32 filesystem api using potential substring of StringView
#516 #510
This commit is contained in:
@@ -233,7 +233,7 @@ bool ShaderCacheManagerService::Init()
|
||||
{
|
||||
LOG(Warning, "Shaders cache database is invalid. Performing reset.");
|
||||
|
||||
if (FileSystem::DeleteDirectory(rootDir))
|
||||
if (FileSystem::DirectoryExists(rootDir) && FileSystem::DeleteDirectory(rootDir))
|
||||
{
|
||||
LOG(Warning, "Failed to reset the shaders cache database.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user