project: Apply formatting

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-05-31 16:44:32 +02:00 committed by Michael Fabian Dirks
parent 88e5a12cb9
commit 2ba556d99e
2 changed files with 6 additions and 5 deletions

View file

@ -44,15 +44,16 @@ streamfx::configuration::~configuration()
streamfx::configuration::configuration() : _data(), _config_path()
{
{ // Retrieve global configuration path.
const char* path = obs_module_config_path("config.json");
_config_path = path;
const char* path = obs_module_config_path("config.json");
_config_path = path;
}
try {
if (!std::filesystem::exists(_config_path) || !std::filesystem::is_regular_file(_config_path)) {
throw std::exception();
} else {
obs_data_t* data = obs_data_create_from_json_file_safe(_config_path.string().c_str(), path_backup_ext.data());
obs_data_t* data =
obs_data_create_from_json_file_safe(_config_path.string().c_str(), path_backup_ext.data());
if (!data) {
throw std::exception();
} else {

View file

@ -70,8 +70,8 @@ static const std::list<streamfx::ui::about::entry> _entries = {
"https://facebook.com/nanitotv", text_social_facebook.data()},
// Separator
streamfx::ui::about::entry{"", streamfx::ui::about::role_type::THANKYOU, "", streamfx::ui::about::link_type::NONE, "",
"", streamfx::ui::about::link_type::NONE, "", ""},
streamfx::ui::about::entry{"", streamfx::ui::about::role_type::THANKYOU, "", streamfx::ui::about::link_type::NONE,
"", "", streamfx::ui::about::link_type::NONE, "", ""},
// Supporters
streamfx::ui::about::entry{"GranDroidTonight", streamfx::ui::about::role_type::PATREON_SUPPORTER, "",