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

Method getDefaultPanel

Source/Native/CtrlrMac.cpp:86–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86const Result CtrlrMac::getDefaultPanel(MemoryBlock &dataToWrite)
87{
88#ifdef DEBUG_INSTANCE
89 File me("/Users/atom/devel/debug.bpanelz");
90#else
91 File me = File::getSpecialLocation(File::currentApplicationFile).getChildFile("Contents/Resources/"+String(CTRLR_MAC_PANEL_FILE));
92#endif
93
94 _DBG("MAC native, loading panel from file: \""+me.getFullPathName()+"\"");
95
96 if (me.existsAsFile())
97 {
98 me.loadFileAsData (dataToWrite);
99 return (Result::ok());
100 }
101
102 return (Result::fail("MAC native, \""+me.getFullPathName()+"\" does not exist"));
103}
104
105const Result CtrlrMac::getDefaultResources(MemoryBlock& dataToWrite)
106{

Callers 1

initEmbeddedInstanceMethod · 0.45

Calls 4

StringFunction · 0.50
getChildFileMethod · 0.45
existsAsFileMethod · 0.45
loadFileAsDataMethod · 0.45

Tested by

no test coverage detected