aboutsummaryrefslogtreecommitdiff
path: root/src/common/io/Resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/io/Resource.cpp')
-rw-r--r--src/common/io/Resource.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/io/Resource.cpp b/src/common/io/Resource.cpp
new file mode 100644
index 00000000..e2ff8004
--- /dev/null
+++ b/src/common/io/Resource.cpp
@@ -0,0 +1,20 @@
+#include "cru/common/io/Resource.hpp"
+#include "cru/common/Exception.hpp"
+
+#if defined(CRU_PLATFORM_OSX)
+#include <CoreFoundation/CoreFoundation.h>
+#elif defined(CRU_PLATFORM_WINDOWS)
+#endif
+
+namespace cru::io {
+std::unique_ptr<Stream> CreateStreamFromResourcePath(const String& path) {
+#if defined(CRU_PLATFORM_OSX)
+ // CFBundleRef main_bundle = CFBundleGetMainBundle();
+ throw Exception(u"Not implemented.");
+#elif defined(CRU_PLATFORM_WINDOWS)
+ throw Exception(u"Not implemented.");
+#else
+ throw Exception(u"Not implemented.");
+#endif
+}
+} // namespace cru::io