mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Replace os_get_config_path with GetConfigPath
This allows the UI to be able to use a custom config path for cases such as portable mode, where the config path is relative to the executable.
This commit is contained in:
@@ -292,7 +292,7 @@ static OBSData GetDataFromJsonFile(const char *jsonFile)
|
||||
{
|
||||
char fullPath[512];
|
||||
|
||||
int ret = os_get_config_path(fullPath, sizeof(fullPath), jsonFile);
|
||||
int ret = GetConfigPath(fullPath, sizeof(fullPath), jsonFile);
|
||||
if (ret > 0) {
|
||||
BPtr<char> jsonData = os_quick_read_utf8_file(fullPath);
|
||||
if (!!jsonData) {
|
||||
|
||||
Reference in New Issue
Block a user