mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-25 22:18:30 +02:00
Have to add some includes and put these behind some ifdefs, of course. I'm pretty sure FreeBSD and OpenBSD and Haiku are POSIX enough that the "open" command will work on them, too. I would've loved to make FILESYSTEM_openDirectoryEnabled a simple bool instead of a function, but I ran into issues with putting it in the FileSystemUtils header file, so I'll just make it a function and call it a day.
27 lines
813 B
C++
27 lines
813 B
C++
#ifndef FILESYSTEMUTILS_H
|
|
#define FILESYSTEMUTILS_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "tinyxml.h"
|
|
|
|
int FILESYSTEM_init(char *argvZero, char* baseDir, char* assetsPath);
|
|
void FILESYSTEM_deinit();
|
|
|
|
char *FILESYSTEM_getUserSaveDirectory();
|
|
char *FILESYSTEM_getUserLevelDirectory();
|
|
|
|
void FILESYSTEM_loadFileToMemory(const char *name, unsigned char **mem,
|
|
size_t *len, bool addnull = false);
|
|
void FILESYSTEM_freeMemory(unsigned char **mem);
|
|
bool FILESYSTEM_saveTiXmlDocument(const char *name, TiXmlDocument *doc);
|
|
bool FILESYSTEM_loadTiXmlDocument(const char *name, TiXmlDocument *doc);
|
|
|
|
std::vector<std::string> FILESYSTEM_getLevelDirFileNames();
|
|
|
|
bool FILESYSTEM_openDirectoryEnabled();
|
|
bool FILESYSTEM_openDirectory(const char *dname);
|
|
|
|
#endif /* FILESYSTEMUTILS_H */
|