mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
43692388c0
commit
d95ba3a8b3
1 changed files with 4 additions and 4 deletions
|
@ -213,7 +213,7 @@ static bool FILESYSTEM_exists(const char *fname)
|
||||||
return PHYSFS_exists(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* real_dir = PHYSFS_getRealDir(fname);
|
||||||
const char* dir_separator;
|
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);
|
printf("Custom asset directory is .data.zip at %s\n", zip_data);
|
||||||
|
|
||||||
if (!FILESYSTEM_mount(zip_data))
|
if (!FILESYSTEM_mountAssetsFrom(zip_data))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -309,7 +309,7 @@ void FILESYSTEM_mountAssets(const char* path)
|
||||||
{
|
{
|
||||||
printf("Custom asset directory is .zip at %s\n", zip_normal);
|
printf("Custom asset directory is .zip at %s\n", zip_normal);
|
||||||
|
|
||||||
if (!FILESYSTEM_mount(zip_normal))
|
if (!FILESYSTEM_mountAssetsFrom(zip_normal))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -320,7 +320,7 @@ void FILESYSTEM_mountAssets(const char* path)
|
||||||
{
|
{
|
||||||
printf("Custom asset directory exists at %s\n", dir);
|
printf("Custom asset directory exists at %s\n", dir);
|
||||||
|
|
||||||
if (!FILESYSTEM_mount(dir))
|
if (!FILESYSTEM_mountAssetsFrom(dir))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue