add hacky way to load encrypted tox saves

This commit is contained in:
2023-08-28 15:33:36 +02:00
parent 9d9a486537
commit d131b5a02f
7 changed files with 102 additions and 14 deletions

View File

@ -20,11 +20,12 @@ class ToxClient : public ToxDefaultImpl, public ToxEventProviderBase {
std::string _self_name;
std::string _tox_profile_path;
std::string _tox_profile_password;
bool _tox_profile_dirty {true}; // set in callbacks
public:
//ToxClient(/*const CommandLine& cl*/);
ToxClient(std::string_view save_path);
ToxClient(std::string_view save_path, std::string_view save_password);
~ToxClient(void);
public: // tox stuff