Remove legacy 'CrySetFileAttributes' (#7226)
* Remove legacy function 'CrySetFileAttributes' and replace its only use with AZ::IO::SystemFile::* functions Signed-off-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
This commit is contained in:
@@ -1132,7 +1132,10 @@ bool CXmlNode::saveToFile(const char* fileName)
|
||||
|
||||
bool CXmlNode::saveToFile([[maybe_unused]] const char* fileName, size_t chunkSize, AZ::IO::HandleType fileHandle)
|
||||
{
|
||||
CrySetFileAttributes(fileName, FILE_ATTRIBUTE_NORMAL);
|
||||
if (AZ::IO::SystemFile::Exists(fileName) && !AZ::IO::SystemFile::IsWritable(fileName))
|
||||
{
|
||||
AZ::IO::SystemFile::SetWritable(fileName, true);
|
||||
}
|
||||
|
||||
if (chunkSize < 256 * 1024) // make at least 256k
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user