mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14:09 +03:00
Add font containers for global and custom fonts
All global fonts and all custom fonts in a level are now loaded, and added to their respective "vectors". The selected font is still always as the global font.png, and the custom level font also isn't selected yet, but it's now easier to implement that. Also, I added FILESYSTEM_enumerateAssets, which #902 already has but I needed it now. I also rewrote it to not use std::vector<std::string>. That was my idea, it's also how FILESYSTEM_getLanguageCodes worked, so for symmetry, that function is getting changed as well.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
22dcc29d45
commit
83d645c8e3
@@ -5,8 +5,6 @@
|
||||
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; }
|
||||
@@ -49,7 +47,16 @@ bool FILESYSTEM_loadAssetTiXml2Document(const char *name, tinyxml2::XMLDocument&
|
||||
|
||||
void FILESYSTEM_enumerateLevelDirFileNames(void (*callback)(const char* filename));
|
||||
|
||||
std::vector<std::string> FILESYSTEM_getLanguageCodes(void);
|
||||
struct EnumHandle
|
||||
{
|
||||
char** physfs_list;
|
||||
char** _item;
|
||||
};
|
||||
|
||||
const char* FILESYSTEM_enumerate(const char* folder, EnumHandle* handle);
|
||||
const char* FILESYSTEM_enumerateAssets(const char* folder, EnumHandle* handle);
|
||||
const char* FILESYSTEM_enumerateLanguageCodes(EnumHandle* handle);
|
||||
void FILESYSTEM_freeEnumerate(EnumHandle* handle);
|
||||
|
||||
bool FILESYSTEM_levelDirHasError(void);
|
||||
void FILESYSTEM_clearLevelDirError(void);
|
||||
|
||||
Reference in New Issue
Block a user