Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Dec 16, 2023
1 parent b2be5ab commit 3aad5a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions UI/obs-app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2747,11 +2747,12 @@ int GetConfigPath(char *path, size_t size, const char *name)
#if ALLOW_PORTABLE_MODE
if (portable_mode) {
if (name && *name) {
return snprintf(path, size,
!opt_config_root.empty()
? (opt_config_root + "/%s").c_str()
: CONFIG_PATH "/%s",
name);
return snprintf(
path, size,
!opt_config_root.empty()
? (opt_config_root + "/%s").c_str()
: CONFIG_PATH "/%s",
name);
} else {
return snprintf(path, size,
!opt_config_root.empty()
Expand Down
3 changes: 2 additions & 1 deletion UI/platform-windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ bool SetDisplayAffinitySupported(void)
return supported;
}

void InitConsole(void) {
void InitConsole(void)
{
if (_fileno(stdout) >= 0 || _fileno(stderr) >= 0) {
return;
}
Expand Down

0 comments on commit 3aad5a6

Please sign in to comment.