mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 10:14:40 +03:00
Add localization "foundation" (many code changes)
This commit adds most of the code changes necessary for making the game translatable, but does not yet "unhardcode" nearly all of the strings (except in a few cases where it was hard to separate added loc::gettexts from foundational code changes, or all the localization- related menus which were also added by this commit.) This commit is part of rewritten history of the localization branch. The original (unsquashed) commit history can be found here: https://github.com/Dav999-v/VVVVVV/tree/localization-orig
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
35d92e8e64
commit
ec611ffa9d
@@ -5,16 +5,23 @@
|
||||
class binaryBlob;
|
||||
|
||||
#include <stddef.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);
|
||||
int FILESYSTEM_init(char *argvZero, char* baseDir, char* assetsPath, char* langDir, char* fontsDir);
|
||||
bool FILESYSTEM_isInit(void);
|
||||
void FILESYSTEM_deinit(void);
|
||||
|
||||
char *FILESYSTEM_getUserSaveDirectory(void);
|
||||
char *FILESYSTEM_getUserLevelDirectory(void);
|
||||
char *FILESYSTEM_getUserMainLangDirectory(void);
|
||||
bool FILESYSTEM_isMainLangDirFromRepo(void);
|
||||
|
||||
bool FILESYSTEM_setLangWriteDir(void);
|
||||
bool FILESYSTEM_restoreWriteDir(void);
|
||||
|
||||
bool FILESYSTEM_isFile(const char* filename);
|
||||
bool FILESYSTEM_isMounted(const char* filename);
|
||||
@@ -23,6 +30,7 @@ void FILESYSTEM_loadZip(const char* filename);
|
||||
bool FILESYSTEM_mountAssets(const char *path);
|
||||
void FILESYSTEM_unmountAssets(void);
|
||||
bool FILESYSTEM_isAssetMounted(const char* filename);
|
||||
bool FILESYSTEM_areAssetsInSameRealDir(const char* filenameA, const char* filenameB);
|
||||
|
||||
void FILESYSTEM_loadFileToMemory(const char *name, unsigned char **mem,
|
||||
size_t *len, bool addnull);
|
||||
@@ -37,9 +45,12 @@ bool FILESYSTEM_loadBinaryBlob(binaryBlob* blob, const char* filename);
|
||||
|
||||
bool FILESYSTEM_saveTiXml2Document(const char *name, tinyxml2::XMLDocument& doc, bool sync = true);
|
||||
bool FILESYSTEM_loadTiXml2Document(const char *name, tinyxml2::XMLDocument& doc);
|
||||
bool FILESYSTEM_loadAssetTiXml2Document(const char *name, tinyxml2::XMLDocument& doc);
|
||||
|
||||
void FILESYSTEM_enumerateLevelDirFileNames(void (*callback)(const char* filename));
|
||||
|
||||
std::vector<std::string> FILESYSTEM_getLanguageCodes(void);
|
||||
|
||||
bool FILESYSTEM_levelDirHasError(void);
|
||||
void FILESYSTEM_clearLevelDirError(void);
|
||||
const char* FILESYSTEM_getLevelDirError(void);
|
||||
|
||||
Reference in New Issue
Block a user