MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / ServeResource

Function ServeResource

Source/SysOSX/Debug/WebDebug.cpp:248–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248bool ServeResource(WebDebugConnection * connection, const char * resource_path)
249{
250 for (size_t i = 0; i < gStaticResources.size(); ++i)
251 {
252 const StaticResource & resource = gStaticResources[i];
253
254 if (strcmp(resource_path, resource.Resource.c_str()) == 0)
255 {
256 ServeFile(connection, resource.FullPath.c_str());
257 return true;
258 }
259 }
260
261 return false;
262}
263
264static int WebDebugDispatch(struct WebbyConnection *connection)
265{

Callers 2

DLDebugHandlerFunction · 0.85
WebDebugDispatchFunction · 0.85

Calls 3

ServeFileFunction · 0.85
sizeMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected