MCPcopy Create free account
hub / github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings / settingsDirectory

Function settingsDirectory

src/utils/paths.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47optional<string> settingsDirectory()
48{
49 const auto path
50 = QStandardPaths::writableLocation( QStandardPaths::AppDataLocation );
51 if ( path == "" )
52 {
53 LOG( ERROR ) << "Could not find settings directory.";
54 return std::nullopt;
55 }
56
57 return path.toStdString();
58}
59
60std::optional<std::string> verifyIconFilePath( std::string filename )
61{

Callers 1

setUpLoggingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected