mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-15 08:15:06 +00:00
project: Apply formatting
This commit is contained in:
parent
88e5a12cb9
commit
2ba556d99e
2 changed files with 6 additions and 5 deletions
|
@ -44,15 +44,16 @@ streamfx::configuration::~configuration()
|
||||||
streamfx::configuration::configuration() : _data(), _config_path()
|
streamfx::configuration::configuration() : _data(), _config_path()
|
||||||
{
|
{
|
||||||
{ // Retrieve global configuration path.
|
{ // Retrieve global configuration path.
|
||||||
const char* path = obs_module_config_path("config.json");
|
const char* path = obs_module_config_path("config.json");
|
||||||
_config_path = path;
|
_config_path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!std::filesystem::exists(_config_path) || !std::filesystem::is_regular_file(_config_path)) {
|
if (!std::filesystem::exists(_config_path) || !std::filesystem::is_regular_file(_config_path)) {
|
||||||
throw std::exception();
|
throw std::exception();
|
||||||
} else {
|
} 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) {
|
if (!data) {
|
||||||
throw std::exception();
|
throw std::exception();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -70,8 +70,8 @@ static const std::list<streamfx::ui::about::entry> _entries = {
|
||||||
"https://facebook.com/nanitotv", text_social_facebook.data()},
|
"https://facebook.com/nanitotv", text_social_facebook.data()},
|
||||||
|
|
||||||
// Separator
|
// Separator
|
||||||
streamfx::ui::about::entry{"", streamfx::ui::about::role_type::THANKYOU, "", 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, "", ""},
|
"", "", streamfx::ui::about::link_type::NONE, "", ""},
|
||||||
|
|
||||||
// Supporters
|
// Supporters
|
||||||
streamfx::ui::about::entry{"GranDroidTonight", streamfx::ui::about::role_type::PATREON_SUPPORTER, "",
|
streamfx::ui::about::entry{"GranDroidTonight", streamfx::ui::about::role_type::PATREON_SUPPORTER, "",
|
||||||
|
|
Loading…
Reference in a new issue