Explorar el Código

add GetDataFilePath implementation for osx

Palana hace 12 años
padre
commit
fd5b00871f
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  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);
 }