mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 10:29:45 +01:00
Properly camel-case FILESYSTEM_[un]mountassets()
They are now camel-cased to be consistent with the rest of the filesystem functions.
This commit is contained in:
parent
9c8ecdb0f4
commit
a8a09a207f
5 changed files with 9 additions and 9 deletions
|
@ -256,7 +256,7 @@ void FILESYSTEM_loadZip(const char* filename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FILESYSTEM_mountassets(const char* path)
|
void FILESYSTEM_mountAssets(const char* path)
|
||||||
{
|
{
|
||||||
const size_t path_size = SDL_strlen(path);
|
const size_t path_size = SDL_strlen(path);
|
||||||
char filename[MAX_PATH];
|
char filename[MAX_PATH];
|
||||||
|
@ -356,7 +356,7 @@ void FILESYSTEM_mountassets(const char* path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FILESYSTEM_unmountassets(void)
|
void FILESYSTEM_unmountAssets(void)
|
||||||
{
|
{
|
||||||
if (assetDir[0] != '\0')
|
if (assetDir[0] != '\0')
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,8 +16,8 @@ bool FILESYSTEM_isFile(const char* filename);
|
||||||
bool FILESYSTEM_isMounted(const char* filename);
|
bool FILESYSTEM_isMounted(const char* filename);
|
||||||
|
|
||||||
void FILESYSTEM_loadZip(const char* filename);
|
void FILESYSTEM_loadZip(const char* filename);
|
||||||
void FILESYSTEM_mountassets(const char *path);
|
void FILESYSTEM_mountAssets(const char *path);
|
||||||
void FILESYSTEM_unmountassets(void);
|
void FILESYSTEM_unmountAssets(void);
|
||||||
bool FILESYSTEM_isAssetMounted(const char* filename);
|
bool FILESYSTEM_isAssetMounted(const char* filename);
|
||||||
|
|
||||||
void FILESYSTEM_loadFileToMemory(const char *name, unsigned char **mem,
|
void FILESYSTEM_loadFileToMemory(const char *name, unsigned char **mem,
|
||||||
|
|
|
@ -6544,7 +6544,7 @@ void Game::quittomenu(void)
|
||||||
{
|
{
|
||||||
gamestate = TITLEMODE;
|
gamestate = TITLEMODE;
|
||||||
graphics.fademode = 4;
|
graphics.fademode = 4;
|
||||||
FILESYSTEM_unmountassets();
|
FILESYSTEM_unmountAssets();
|
||||||
graphics.titlebg.tdrawback = true;
|
graphics.titlebg.tdrawback = true;
|
||||||
graphics.flipmode = false;
|
graphics.flipmode = false;
|
||||||
//Don't be stuck on the summary screen,
|
//Don't be stuck on the summary screen,
|
||||||
|
|
|
@ -1748,14 +1748,14 @@ bool editorclass::load(std::string& _path)
|
||||||
_path = levelDir + _path;
|
_path = levelDir + _path;
|
||||||
}
|
}
|
||||||
|
|
||||||
FILESYSTEM_unmountassets();
|
FILESYSTEM_unmountAssets();
|
||||||
if (game.playassets != "")
|
if (game.playassets != "")
|
||||||
{
|
{
|
||||||
FILESYSTEM_mountassets(game.playassets.c_str());
|
FILESYSTEM_mountAssets(game.playassets.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FILESYSTEM_mountassets(_path.c_str());
|
FILESYSTEM_mountAssets(_path.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
tinyxml2::XMLDocument doc;
|
tinyxml2::XMLDocument doc;
|
||||||
|
|
|
@ -409,7 +409,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
ARG_INNER({
|
ARG_INNER({
|
||||||
i++;
|
i++;
|
||||||
// Even if this is a directory, FILESYSTEM_mountassets() expects '.vvvvvv' on the end
|
// Even if this is a directory, FILESYSTEM_mountAssets() expects '.vvvvvv' on the end
|
||||||
playassets = "levels/" + std::string(argv[i]) + ".vvvvvv";
|
playassets = "levels/" + std::string(argv[i]) + ".vvvvvv";
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue