forked from id-Software/Quake-III-Arena
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5717 - Gamecode can open file "" for reading
- Loading branch information
1 parent
9257327
commit 2e45edb
Showing
5 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -283,6 +283,15 @@ const char *Sys_Dirname( char *path ) | |
return dir; | ||
} | ||
|
||
/* | ||
============== | ||
Sys_FOpen | ||
============== | ||
*/ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
zturtleman
Author
Member
|
||
FILE *Sys_FOpen( const char *ospath, const char *mode ) { | ||
return fopen( ospath, mode ); | ||
} | ||
|
||
/* | ||
============== | ||
Sys_Mkdir | ||
|
Pretty sure you can use the stat check on windows as well.
The latter portion just needs to be (buf.st_mode & _S_IFDIR).
I don't know how reliable it is though considering its just posix code and not full filesytem access on win32.