From fd5b00871f1885e29b323cb1d8b8dd5edb32e0cb Mon Sep 17 00:00:00 2001 From: Palana Date: Thu, 12 Dec 2013 11:44:17 +0100 Subject: [PATCH] add GetDataFilePath implementation for osx --- obs/platform-osx.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/obs/platform-osx.cpp b/obs/platform-osx.cpp index 88dd77cbd..ef425f90d 100644 --- a/obs/platform-osx.cpp +++ b/obs/platform-osx.cpp @@ -18,8 +18,12 @@ #include #include "platform.hpp" +#include + 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); }