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

@@ -33,14 +33,14 @@ static std::unique_ptr<SystemTray> constructSystemTray(SimpleConfigModel& conf,
}
}
MainScreen::MainScreen(SimpleConfigModel&& conf_, SDL_Renderer* renderer_, Theme& theme_, std::string save_path, std::string save_password, std::string new_username, std::vector<std::string> plugins) :
MainScreen::MainScreen(const SimpleConfigModel& conf_, SDL_Renderer* renderer_, Theme& theme_, std::string save_path, std::string save_password, std::string new_username, std::vector<std::string> plugins) :
renderer(renderer_),
conf(std::move(conf_)),
conf(conf_),
rmm(cr),
msnj{cr, os, {}, {}},
mts(rmm),
sm(os),
tc(save_path, save_password),
tc(conf, save_path, save_password),
tel(tc, std::cout),
tpi(tc.getTox()),
ad(tc),