0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

UI: Remove InitApplicationBundle() function

This commit is contained in:
gxalpha 2022-03-17 18:04:22 +01:00 committed by Jim
parent 7dcd22dc95
commit dde2fe209a
5 changed files with 0 additions and 21 deletions

View File

@ -1281,8 +1281,6 @@ void OBSApp::AppInit()
{
ProfileScope("OBSApp::AppInit");
if (!InitApplicationBundle())
throw "Failed to initialize application bundle";
if (!MakeUserDirs())
throw "Failed to create required user directories";
if (!InitGlobalConfig())

View File

@ -48,12 +48,6 @@ bool GetDataFilePath(const char *data, string &output)
return !access(output.c_str(), R_OK);
}
#pragma deprecated(InitApplicationBundle)
bool InitApplicationBundle()
{
return true;
}
void CheckIfAlreadyRunning(bool &already_running)
{
try {

View File

@ -59,11 +59,6 @@ bool GetDataFilePath(const char *data, string &output)
return check_path(data, OBS_DATA_PATH "/obs-studio/", output);
}
bool InitApplicationBundle()
{
return true;
}
string GetDefaultVideoSavePath()
{
wchar_t path_utf16[MAX_PATH];

View File

@ -201,11 +201,6 @@ bool GetDataFilePath(const char *data, string &output)
return false;
}
bool InitApplicationBundle()
{
return true;
}
string GetDefaultVideoSavePath()
{
return string(getenv("HOME"));

View File

@ -27,9 +27,6 @@ class QWidget;
/* Gets the path of obs-studio specific data files (such as locale) */
bool GetDataFilePath(const char *data, std::string &path);
/* Updates the working directory for OSX application bundles */
bool OBS_DEPRECATED InitApplicationBundle();
std::string GetDefaultVideoSavePath();
std::vector<std::string> GetPreferredLocales();