1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-02 02:53:32 +02:00

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.
This commit is contained in:
Misa 2021-04-03 14:17:40 -07:00 committed by Ethan Lee
parent 43692388c0
commit d95ba3a8b3

View File

@ -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;
}