load toxcore settings from conf like totato does

add ui in startup to configure the core for this run
other start screen improvements
This commit is contained in:
Green Sky
2025-02-06 19:47:48 +01:00
parent ce0ff0bea9
commit bfbeafddf7
5 changed files with 246 additions and 92 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <solanaceae/util/config_model.hpp>
#include <solanaceae/toxcore/tox_default_impl.hpp>
#include <solanaceae/toxcore/tox_event_interface.hpp>
#include <solanaceae/toxcore/tox_event_provider_base.hpp>
@@ -26,7 +28,7 @@ class ToxClient : public ToxDefaultImpl, public ToxEventProviderBase {
public:
//ToxClient(/*const CommandLine& cl*/);
ToxClient(std::string_view save_path, std::string_view save_password);
ToxClient(ConfigModelI& conf, std::string_view save_path, std::string_view save_password);
~ToxClient(void);
public: // tox stuff