bot: added support for loading from custom folders (ref #498)

This commit is contained in:
jeefo 2023-12-20 00:06:45 +03:00
commit a904f49231
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
7 changed files with 59 additions and 19 deletions

View file

@ -53,8 +53,6 @@ public:
~Folders () = default;
public:
static constexpr StringRef bot { "yapb" };
static constexpr StringRef addons { "addons" };
static constexpr StringRef config { "conf" };
static constexpr StringRef data { "data" };
static constexpr StringRef lang { "lang" };

View file

@ -78,6 +78,12 @@ public:
// builds the filename to requested filename
String buildPath (int32_t type, bool isMemoryLoad = false);
// get's relative path against bot library (bot library should reside in bin dir)
String getRunningPath ();
// same as above, but with valve-specific filesystem paths (loadfileforme)
String getRunningPathVFS ();
// converts storage option to storage filename
int32_t storageToBotFile (int32_t options);