Core/Enums: Fix typo in OpenMode (MustExit => MustExist)
This commit is contained in:
parent
c99008f7b5
commit
efcce7d442
|
|
@ -81,7 +81,7 @@ namespace Nz
|
||||||
|
|
||||||
OpenMode_Append, // Disable writing on existing parts and put the cursor at the end
|
OpenMode_Append, // Disable writing on existing parts and put the cursor at the end
|
||||||
OpenMode_Lock, // Disable modifying the file before it is open
|
OpenMode_Lock, // Disable modifying the file before it is open
|
||||||
OpenMode_MustExit, // Fail if the file doesn't exists, even if opened in write mode
|
OpenMode_MustExist, // Fail if the file doesn't exists, even if opened in write mode
|
||||||
OpenMode_ReadOnly, // Open in read only
|
OpenMode_ReadOnly, // Open in read only
|
||||||
OpenMode_Text, // Open in text mod
|
OpenMode_Text, // Open in text mod
|
||||||
OpenMode_Truncate, // Create the file if it doesn't exist and empty it if it exists
|
OpenMode_Truncate, // Create the file if it doesn't exist and empty it if it exists
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ aiFile* StreamOpener(aiFileIO* fileIO, const char* filePath, const char* openMod
|
||||||
{
|
{
|
||||||
openModeEnum |= OpenMode_ReadOnly;
|
openModeEnum |= OpenMode_ReadOnly;
|
||||||
if (std::strchr(openMode, '+'))
|
if (std::strchr(openMode, '+'))
|
||||||
openModeEnum |= OpenMode_ReadWrite | OpenMode_MustExit;
|
openModeEnum |= OpenMode_ReadWrite | OpenMode_MustExist;
|
||||||
}
|
}
|
||||||
else if (std::strchr(openMode, 'w'))
|
else if (std::strchr(openMode, 'w'))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ namespace Nz
|
||||||
{
|
{
|
||||||
access |= GENERIC_READ;
|
access |= GENERIC_READ;
|
||||||
|
|
||||||
if (mode & OpenMode_MustExit || (mode & OpenMode_WriteOnly) == 0)
|
if (mode & OpenMode_MustExist || (mode & OpenMode_WriteOnly) == 0)
|
||||||
openMode |= OPEN_EXISTING;
|
openMode |= OPEN_EXISTING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -78,7 +78,7 @@ namespace Nz
|
||||||
|
|
||||||
if (mode & OpenMode_Truncate)
|
if (mode & OpenMode_Truncate)
|
||||||
openMode |= CREATE_ALWAYS;
|
openMode |= CREATE_ALWAYS;
|
||||||
else if (mode & OpenMode_MustExit)
|
else if (mode & OpenMode_MustExist)
|
||||||
openMode |= OPEN_EXISTING;
|
openMode |= OPEN_EXISTING;
|
||||||
else
|
else
|
||||||
openMode |= OPEN_ALWAYS;
|
openMode |= OPEN_ALWAYS;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue