File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,19 @@ std::string get_current_scene_collection_filename()
112
112
{
113
113
int v = get_major_version ();
114
114
if (v < 31 ) { // Get the filename from global.ini
115
+ // also in pre-31, the filename in the config file did not
116
+ // have a filetype suffix.
117
+ // so we need to add .json
115
118
#pragma warning (disable : 4996)
116
119
std::string file_name =
117
120
config_get_string (obs_frontend_get_global_config (), " Basic" ,
118
121
" SceneCollectionFile" );
119
122
#pragma warning (default : 4996)
123
+ file_name += " .json" ;
120
124
return file_name;
121
- }
122
- else { // get the filename from user.ini
125
+ } else { // get the filename from user.ini
126
+ // in 31+ the filename stored in user.ini *does* have a filetype
127
+ // suffix.
123
128
void * obs_frontend_dll = os_dlopen (" obs-frontend-api.dll" );
124
129
void * sym = os_dlsym (obs_frontend_dll, " obs_frontend_get_user_config" );
125
130
config_t * (*get_user_config)() = (config_t * (*)())sym;
You can’t perform that action at this time.
0 commit comments