Add files
This commit is contained in:
parent
ce2ed0619d
commit
a881146372
@ -29,7 +29,7 @@ sus_File sus_fileOpenInMem(char * fileName, unsigned long parameter){
|
||||
NULL,
|
||||
(parameter & SUS_FILE_NEW ? CREATE_NEW : OPEN_EXISTING), //Open the file only if it exists/if it DOES NOT EXIST to prevent user error
|
||||
FILE_FLAG_RANDOM_ACCESS | //optimize for random access to file
|
||||
(parameter & SUS_FILE_TEMP ? (FILE_ATTRIBUTE_TEMPORARY | FILE_FLAG_DELETE_ON_CLOSE) : FILE_ATTRIBUTE_NORMAL), // just a normal file :D / automatically remove the file, if no longer needed
|
||||
((parameter & SUS_FILE_TEMP == SUS_FILE_TEMP) ? (FILE_ATTRIBUTE_TEMPORARY | FILE_FLAG_DELETE_ON_CLOSE) : FILE_ATTRIBUTE_NORMAL), // just a normal file :D / automatically remove the file, if no longer needed
|
||||
NULL);
|
||||
if(currentFile->fileHandle == NULL || currentFile->fileHandle == INVALID_HANDLE_VALUE){
|
||||
//debug
|
||||
|
Loading…
Reference in New Issue
Block a user