MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getDefaultResources

Method getDefaultResources

Source/Native/CtrlrMac.cpp:105–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105const Result CtrlrMac::getDefaultResources(MemoryBlock& dataToWrite)
106{
107#ifdef DEBUG_INSTANCE
108 File meRes = File("/Users/atom/devel/debug.z");
109#else
110 File meRes = File::getSpecialLocation(File::currentApplicationFile).getChildFile("Contents/Resources/"+String(CTRLR_MAC_RESOURCES_FILE));
111#endif
112 _DBG("MAC native, loading resuources from: \""+meRes.getFullPathName()+"\"");
113
114 if (meRes.existsAsFile())
115 {
116 meRes.loadFileAsData (dataToWrite);
117 return (Result::ok());
118 }
119
120 return (Result::fail("MAC native, \""+meRes.getFullPathName()+"\" does not exist"));
121}
122
123const Result CtrlrMac::setBundleInfo (CtrlrPanel *sourceInfo, const File &bundle)
124{

Callers 1

Calls 5

FileClass · 0.85
StringFunction · 0.50
getChildFileMethod · 0.45
existsAsFileMethod · 0.45
loadFileAsDataMethod · 0.45

Tested by

no test coverage detected