Add flags for testing pairing

This commit is contained in:
loki 2020-03-19 19:59:27 +01:00
commit ad87463784
5 changed files with 156 additions and 25 deletions

View file

@ -64,16 +64,8 @@ void on_signal(int sig, FN &&fn) {
}
int main(int argc, char *argv[]) {
const char *config_file = SUNSHINE_ASSETS_DIR "/sunshine.conf";
if(argc > 1) {
config_file = argv[1];
}
if(!std::filesystem::exists(config_file)) {
std::cout << "Warning: Couldn't find configuration file ["sv << config_file << ']' << std::endl;
}
else {
config::parse_file(config_file);
if(config::parse(argc, argv)) {
return 0;
}
sink = boost::make_shared<text_sink>();