From d95ba3a8b3e558e6ec7e1d1c2411163e830da20c Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 3 Apr 2021 14:17:40 -0700 Subject: [PATCH] Rename FILESYSTEM_mount() to FILESYSTEM_mountAssetsFrom() This is to make it clear that this is not a general-purpose mounting function; it is a helper function for FILESYSTEM_mountAssets() specifically for treating a directory or file as an assets directory, and mounting assets from there. --- desktop_version/src/FileSystemUtils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 1e95d399..167582ce 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -213,7 +213,7 @@ static bool FILESYSTEM_exists(const char *fname) return PHYSFS_exists(fname); } -static bool FILESYSTEM_mount(const char *fname) +static bool FILESYSTEM_mountAssetsFrom(const char *fname) { const char* real_dir = PHYSFS_getRealDir(fname); const char* dir_separator; @@ -298,7 +298,7 @@ void FILESYSTEM_mountAssets(const char* path) { printf("Custom asset directory is .data.zip at %s\n", zip_data); - if (!FILESYSTEM_mount(zip_data)) + if (!FILESYSTEM_mountAssetsFrom(zip_data)) { return; } @@ -309,7 +309,7 @@ void FILESYSTEM_mountAssets(const char* path) { printf("Custom asset directory is .zip at %s\n", zip_normal); - if (!FILESYSTEM_mount(zip_normal)) + if (!FILESYSTEM_mountAssetsFrom(zip_normal)) { return; } @@ -320,7 +320,7 @@ void FILESYSTEM_mountAssets(const char* path) { printf("Custom asset directory exists at %s\n", dir); - if (!FILESYSTEM_mount(dir)) + if (!FILESYSTEM_mountAssetsFrom(dir)) { return; }