mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 10:29:45 +01:00
2d21bab4ea
Some levels (like Unshackled) have decided to manually re-color the one-way tiles on their own, and us overriding their re-color is not something they would want. This does mean custom levels with custom assets don't get to take advantage of the re-color, but it's the exact same behavior as before, so it shouldn't really matter that much. I would've liked to specifically detect if a custom tiles.png or tiles2.png was in play, rather than simply disabling it if any asset was mounted, but it seems that detecting if a specific file was mounted from a specific zip isn't really PHYSFS's strong suit.
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
#ifndef FILESYSTEMUTILS_H
|
|
#define FILESYSTEMUTILS_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
// Forward declaration, including the entirety of tinyxml2.h across all files this file is included in is unnecessary
|
|
namespace tinyxml2 { class XMLDocument; }
|
|
|
|
int FILESYSTEM_init(char *argvZero, char* baseDir, char* assetsPath);
|
|
void FILESYSTEM_deinit();
|
|
|
|
char *FILESYSTEM_getUserSaveDirectory();
|
|
char *FILESYSTEM_getUserLevelDirectory();
|
|
|
|
bool FILESYSTEM_directoryExists(const char *fname);
|
|
void FILESYSTEM_mount(const char *fname);
|
|
extern bool FILESYSTEM_assetsmounted;
|
|
void FILESYSTEM_mountassets(const char *path);
|
|
void FILESYSTEM_unmountassets();
|
|
|
|
void FILESYSTEM_loadFileToMemory(const char *name, unsigned char **mem,
|
|
size_t *len, bool addnull = false);
|
|
void FILESYSTEM_freeMemory(unsigned char **mem);
|
|
bool FILESYSTEM_saveTiXml2Document(const char *name, tinyxml2::XMLDocument& doc);
|
|
bool FILESYSTEM_loadTiXml2Document(const char *name, tinyxml2::XMLDocument& doc);
|
|
|
|
std::vector<std::string> FILESYSTEM_getLevelDirFileNames();
|
|
|
|
bool FILESYSTEM_openDirectoryEnabled();
|
|
bool FILESYSTEM_openDirectory(const char *dname);
|
|
|
|
bool FILESYSTEM_delete(const char *name);
|
|
|
|
#endif /* FILESYSTEMUTILS_H */
|