From 2a394eee624e1f713362842e89401c6f7b8916c6 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 16 Jul 2024 15:12:42 +0300 Subject: [PATCH] filesystem: make g_api const --- filesystem/filesystem.c | 2 +- filesystem/filesystem_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index a363cf04..c7f82d29 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -2999,7 +2999,7 @@ static qboolean FS_InitInterface( int version, fs_interface_t *engfuncs ) return true; } -fs_api_t g_api = +const fs_api_t g_api = { FS_InitStdio, FS_ShutdownStdio, diff --git a/filesystem/filesystem_internal.h b/filesystem/filesystem_internal.h index e2531177..315a10a0 100644 --- a/filesystem/filesystem_internal.h +++ b/filesystem/filesystem_internal.h @@ -123,7 +123,7 @@ extern fs_interface_t g_engfuncs; extern qboolean fs_ext_path; extern char fs_rodir[MAX_SYSPATH]; extern char fs_rootdir[MAX_SYSPATH]; -extern fs_api_t g_api; +extern const fs_api_t g_api; extern const fs_archive_t g_archives[]; #define GI FI.GameInfo