MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / sceneCatalogViewFromString

Function sceneCatalogViewFromString

App/UserSettings.cpp:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 UserSettings::SceneCatalogView sceneCatalogViewFromString(const std::string& value) {
112 if (value == "demo") {
113 return UserSettings::SceneCatalogView::Demo;
114 }
115 if (value == "user") {
116 return UserSettings::SceneCatalogView::User;
117 }
118 return UserSettings::SceneCatalogView::All;
119 }
120}
121
122std::filesystem::path UserSettingsIO::defaultPath() { return std::filesystem::path(AppPaths::kUserSettingsPath); }

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected