浏览代码

Merge pull request #436 from ThoNohT/output-folder

Use correct output folder for Show/Remux
Jim 10 年之前
父节点
当前提交
859415943f
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      obs/window-basic-main.cpp

+ 8 - 4
obs/window-basic-main.cpp

@@ -1950,15 +1950,19 @@ void OBSBasic::on_action_Save_triggered()
 
 
 void OBSBasic::on_actionShow_Recordings_triggered()
 void OBSBasic::on_actionShow_Recordings_triggered()
 {
 {
-	const char *path = config_get_string(basicConfig,
-			"SimpleOutput", "FilePath");
+	const char *mode = config_get_string(basicConfig, "Output", "Mode");
+	const char *path = strcmp(mode, "Advanced") ?
+		config_get_string(basicConfig, "SimpleOutput", "FilePath") :
+		config_get_string(basicConfig, "AdvOut", "RecFilePath");
 	QDesktopServices::openUrl(QUrl::fromLocalFile(path));
 	QDesktopServices::openUrl(QUrl::fromLocalFile(path));
 }
 }
 
 
 void OBSBasic::on_actionRemux_triggered()
 void OBSBasic::on_actionRemux_triggered()
 {
 {
-	const char *path = config_get_string(basicConfig,
-			"SimpleOutput", "FilePath");
+	const char *mode = config_get_string(basicConfig, "Output", "Mode");
+	const char *path = strcmp(mode, "Advanced") ?
+		config_get_string(basicConfig, "SimpleOutput", "FilePath") :
+		config_get_string(basicConfig, "AdvOut", "RecFilePath");
 	OBSRemux remux(path, this);
 	OBSRemux remux(path, this);
 	remux.exec();
 	remux.exec();
 }
 }