0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

add GetDataFilePath implementation for osx

This commit is contained in:
Palana 2013-12-12 11:44:17 +01:00
parent 467362f584
commit fd5b00871f

View File

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