UI: Create default scene if no file found
This commit is contained in:
parent
cd7a648ba4
commit
44b34431be
1 changed files with 3 additions and 1 deletions
|
|
@ -444,7 +444,9 @@ void OBSBasic::CleanupUnusedSources()
|
|||
void OBSBasic::Load(const char *file)
|
||||
{
|
||||
if (!file || !os_file_exists(file)) {
|
||||
blog(LOG_ERROR, "Could not find file %s", file);
|
||||
blog(LOG_INFO, "No scene file found, creating default scene");
|
||||
CreateDefaultScene();
|
||||
SaveProject();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue