MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / GetOpenVRConfigPath

Method GetOpenVRConfigPath

src/vrcore/vrpathregistry_public.cpp:112–127  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Purpose: Computes the registry filename ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

110// Purpose: Computes the registry filename
111// ---------------------------------------------------------------------------
112std::string CVRPathRegistry_Public::GetOpenVRConfigPath()
113{
114 std::string sConfigPath = GetAppSettingsPath();
115 if( sConfigPath.empty() )
116 return "";
117
118#if defined( _WIN32 ) || defined( LINUX )
119 sConfigPath = Path_Join( sConfigPath, "openvr" );
120#elif defined ( OSX )
121 sConfigPath = Path_Join( sConfigPath, ".openvr" );
122#else
123 #warning "Unsupported platform"
124#endif
125 sConfigPath = Path_FixSlashes( sConfigPath );
126 return sConfigPath;
127}
128
129
130

Callers

nothing calls this directly

Calls 4

GetAppSettingsPathFunction · 0.85
emptyMethod · 0.80
Path_JoinFunction · 0.70
Path_FixSlashesFunction · 0.70

Tested by

no test coverage detected