Core/Enums: Fix typo in OpenMode (MustExit => MustExist)

This commit is contained in:
Lynix 2016-11-27 14:23:26 +01:00
parent c99008f7b5
commit efcce7d442
3 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ namespace Nz
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_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_Text, // Open in text mod
OpenMode_Truncate, // Create the file if it doesn't exist and empty it if it exists

View File

@ -89,7 +89,7 @@ aiFile* StreamOpener(aiFileIO* fileIO, const char* filePath, const char* openMod
{
openModeEnum |= OpenMode_ReadOnly;
if (std::strchr(openMode, '+'))
openModeEnum |= OpenMode_ReadWrite | OpenMode_MustExit;
openModeEnum |= OpenMode_ReadWrite | OpenMode_MustExist;
}
else if (std::strchr(openMode, 'w'))
{

View File

@ -65,7 +65,7 @@ namespace Nz
{
access |= GENERIC_READ;
if (mode & OpenMode_MustExit || (mode & OpenMode_WriteOnly) == 0)
if (mode & OpenMode_MustExist || (mode & OpenMode_WriteOnly) == 0)
openMode |= OPEN_EXISTING;
}
@ -78,7 +78,7 @@ namespace Nz
if (mode & OpenMode_Truncate)
openMode |= CREATE_ALWAYS;
else if (mode & OpenMode_MustExit)
else if (mode & OpenMode_MustExist)
openMode |= OPEN_EXISTING;
else
openMode |= OPEN_ALWAYS;