MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / syncRegistry

Method syncRegistry

Examples/SCExample/HotReloadSystem.h:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 Result syncRegistry()
140 {
141 PluginDefinition definitions[16];
142 Span<PluginDefinition> definitionSpan;
143 Buffer fileBuffer;
144 SC_TRY(PluginScanner::scanDirectory(state.examplesPath.view(), definitions, fileBuffer, definitionSpan))
145 SC_TRY(registry.replaceDefinitions(move(definitionSpan)));
146 return Result(true);
147 }
148
149 Result load(StringView identifier)
150 {

Callers 2

drawInternalMethod · 0.45
createMethod · 0.45

Calls 3

replaceDefinitionsMethod · 0.80
ResultClass · 0.50
viewMethod · 0.45

Tested by

no test coverage detected