bot: added support for loading from custom folders (ref #498)
This commit is contained in:
parent
835c9fc4ed
commit
a904f49231
7 changed files with 59 additions and 19 deletions
|
|
@ -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" };
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue