Skip to content

Commit

Permalink
Add define for filesystem API extension string.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Aug 29, 2024
1 parent d2b24f1 commit 1691bfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions inc/shared/files.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ typedef struct {
#define FS_FLAG_LOADFILE 0x00001000 // open non-unique handle, must be closed very quickly
#define FS_FLAG_MASK 0x0000ff00

#define FILESYSTEM_API_V1 "FILESYSTEM_API_V1"

typedef struct {
int64_t (*OpenFile)(const char *path, qhandle_t *f, unsigned mode); // returns file length
int (*CloseFile)(qhandle_t f);
Expand Down
2 changes: 1 addition & 1 deletion src/server/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ static void *PF_GetExtension(const char *name)
if (!name)
return NULL;

if (!strcmp(name, "FILESYSTEM_API_V1"))
if (!strcmp(name, FILESYSTEM_API_V1))
return (void *)&filesystem_api_v1;

#if USE_REF && USE_DEBUG
Expand Down

0 comments on commit 1691bfd

Please sign in to comment.