diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 76d6245c5..90253dab2 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -858,6 +858,9 @@ bool OBSApp::OBSInit() if (!StartupOBS(locale.c_str(), GetProfilerNameStore())) return false; + blog(LOG_INFO, "Portable mode: %s", + portable_mode ? "true" : "false"); + mainWindow = new OBSBasic(); mainWindow->setAttribute(Qt::WA_DeleteOnClose, true); @@ -909,6 +912,11 @@ string OBSApp::GetVersionString() const return ver.str(); } +bool OBSApp::IsPortableMode() +{ + return portable_mode; +} + #ifdef __APPLE__ #define INPUT_AUDIO_SOURCE "coreaudio_input_capture" #define OUTPUT_AUDIO_SOURCE "coreaudio_output_capture" diff --git a/UI/obs-app.hpp b/UI/obs-app.hpp index 9c45803e0..3990e04af 100644 --- a/UI/obs-app.hpp +++ b/UI/obs-app.hpp @@ -117,6 +117,7 @@ public: const char *GetCurrentLog() const; std::string GetVersionString() const; + bool IsPortableMode(); const char *InputAudioSource() const; const char *OutputAudioSource() const; diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index da5369a95..9fb8536d9 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -4459,6 +4459,9 @@ void OBSBasic::UpdateTitleBar() name << "Studio "; name << App()->GetVersionString(); + if (App()->IsPortableMode()) + name << " - Portable Mode"; + name << " - " << Str("TitleBar.Profile") << ": " << profile; name << " - " << Str("TitleBar.Scenes") << ": " << sceneCollection;