storage: only use relative paths if installed in a desired way

graph:  drop support  for cs-ebot ewp files
This commit is contained in:
jeefo 2025-08-21 21:43:21 +03:00
commit 9b8c41edea
No known key found for this signature in database
GPG key ID: D696786B81B667C8
6 changed files with 32 additions and 13 deletions

View file

@ -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 () {