MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / userThemeFolder

Method userThemeFolder

src/app/commands/cmd_options.cpp:503–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501 }
502
503 static std::string userThemeFolder() {
504 ResourceFinder rf;
505 rf.includeDataDir("skins");
506
507 // Create user folder to store skins
508 try {
509 if (!base::is_directory(rf.defaultFilename()))
510 base::make_all_directories(rf.defaultFilename());
511 }
512 catch (...) {
513 // Ignore errors
514 }
515
516 return base::normalize_path(rf.defaultFilename());
517 }
518
519 static std::vector<std::string> themeFolders() {
520 ResourceFinder rf;

Callers

nothing calls this directly

Calls 4

make_all_directoriesFunction · 0.85
normalize_pathFunction · 0.85
includeDataDirMethod · 0.80
is_directoryFunction · 0.50

Tested by

no test coverage detected