storage: only use relative paths if installed in a desired way
graph: drop support for cs-ebot ewp files
This commit is contained in:
parent
784ad5e303
commit
9b8c41edea
6 changed files with 32 additions and 13 deletions
|
|
@ -67,7 +67,7 @@ public:
|
|||
CTS_BUILD_STR train { "train" };
|
||||
CTS_BUILD_STR graph { "graph" };
|
||||
CTS_BUILD_STR podbot { "pwf" };
|
||||
CTS_BUILD_STR ebot { "ewp" };
|
||||
CTS_BUILD_STR bin { "bin" };
|
||||
} folders {};
|
||||
|
||||
#undef CTS_BUILD_STR
|
||||
|
|
|
|||
|
|
@ -40,8 +40,7 @@ CR_DECLARE_SCOPED_ENUM_TYPE (BotFile, uint32_t,
|
|||
Practice = 2,
|
||||
Graph = 3,
|
||||
Pathmatrix = 4,
|
||||
PodbotPWF = 5,
|
||||
EbotEWP = 6
|
||||
PodbotPWF = 5
|
||||
)
|
||||
|
||||
class BotStorage final : public Singleton <BotStorage> {
|
||||
|
|
@ -58,6 +57,7 @@ private:
|
|||
private:
|
||||
int m_retries {};
|
||||
ULZ *m_ulz {};
|
||||
bool m_useNonRelativePaths {};
|
||||
|
||||
public:
|
||||
BotStorage () = default;
|
||||
|
|
@ -91,6 +91,9 @@ public:
|
|||
// remove all bot related files from disk
|
||||
void unlinkFromDisk (bool onlyTrainingData, bool silenceMessages);
|
||||
|
||||
// is correctly installed and running from correct folder?
|
||||
void checkInstallLocation ();
|
||||
|
||||
public:
|
||||
// loading the graph may attempt to recurse loading, with converting or download, reset retry counter
|
||||
void resetRetries () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue