MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / getConfigBasePath

Function getConfigBasePath

OpenHD/ohd_common/src/config_paths.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38static char* VIDEO_PATH = nullptr;
39
40const char* getConfigBasePath() {
41 const auto platform_debug = OHDPlatform::instance();
42 if (platform_debug.is_rock()) {
43 return "/config/openhd/";
44 } else if (platform_debug.is_x20()) {
45 return "/config/openhd/";
46 } else {
47 return "/boot/openhd/";
48 }
49}
50
51const char* getVideoPath() {
52 static std::string cachedPath;

Callers 15

parse_run_parametersFunction · 0.85
GStreamerStreamMethod · 0.85
create_pipelineMethod · 0.85
openhd_config.cppFile · 0.85
write_file_airFunction · 0.85
write_file_groundFunction · 0.85
write_file_ethernetFunction · 0.85

Calls 2

is_rockMethod · 0.80
is_x20Method · 0.80

Tested by

no test coverage detected