Преглед на файлове

add GetDataFilePath implementation for osx

Palana преди 12 години
родител
ревизия
fd5b00871f
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      obs/platform-osx.cpp

+ 6 - 2
obs/platform-osx.cpp

@@ -18,8 +18,12 @@
 #include <sstream>
 #include "platform.hpp"
 
+#include <unistd.h>
+
 bool GetDataFilePath(const char *data, string &output)
 {
-	// TODO
-	return false;
+	stringstream str;
+	str << "../data/obs-studio/" << data;
+	output = str.str();
+	return !access(output.c_str(), R_OK);
 }