| 246 | } |
| 247 | |
| 248 | bool 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 | |
| 264 | static int WebDebugDispatch(struct WebbyConnection *connection) |
| 265 | { |
no test coverage detected