Skip to content

Commit

Permalink
files: Add FS_LoadFileFlags() macro
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Apr 12, 2021
1 parent 6fbdc98 commit c646db2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/common/files.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ typedef struct file_info_s {
#define FS_Mallocz(size) Z_TagMallocz(size, TAG_FILESYSTEM)
#define FS_CopyString(string) Z_TagCopyString(string, TAG_FILESYSTEM)
#define FS_LoadFile(path, buf) FS_LoadFileEx(path, buf, 0, TAG_FILESYSTEM)
#define FS_LoadFileFlags(path, buf, flags) \
FS_LoadFileEx(path, buf, (flags), TAG_FILESYSTEM)
#define FS_FreeFile(buf) Z_Free(buf)

// just regular malloc for now
Expand Down

0 comments on commit c646db2

Please sign in to comment.