Pārlūkot izejas kodu

UI/importers: Automatically detect SL Collections on macOS

gxalpha 4 gadi atpakaļ
vecāks
revīzija
3dbdd4b312
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      UI/importers/sl.cpp

+ 4 - 3
UI/importers/sl.cpp

@@ -503,11 +503,12 @@ bool SLImporter::Check(const string &path)
 OBSImporterFiles SLImporter::FindFiles()
 {
 	OBSImporterFiles res;
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__APPLE__)
 	char dst[512];
 
-	int found = os_get_config_path(dst, 512,
-				       "slobs-client\\SceneCollections\\");
+	int found =
+		os_get_config_path(dst, 512, "slobs-client/SceneCollections/");
+
 	if (found == -1)
 		return res;