void loadStyleData() { for(auto filePath : getAllFilePaths("Styles/", ".json")) { StyleData styleData{loadStyleFromJson(getJsonFileRoot(filePath))}; styleDataMap.insert(make_pair(styleData.getId(), styleData)); } }
void loadStyleData(const string& mPath) { for(auto filePath : getScan<Mode::Single, Type::File, Pick::ByExt>(mPath + "Styles/", ".json")) { StyleData styleData{loadStyleFromJson(getRootFromFile(filePath))}; styleData.setRootPath(filePath); styleDataMap.insert(make_pair(styleData.getId(), styleData)); } }