فهرست منبع

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);
 }