blob: e2ff80047f17845b816bc83b4e69eefc8595b1ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|