MCPcopy Create free account
hub / github.com/MCJack123/craftos2 / getROMPath

Function getROMPath

src/platform/linux.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88#ifdef CUSTOM_ROM_DIR
89path_t getROMPath() {
90 if (!rom_path_expanded.empty()) return rom_path_expanded;
91 wordexp_t p;
92 wordexp(rom_path, &p, 0);
93 rom_path_expanded = p.we_wordv[0];
94 for (unsigned i = 1; i < p.we_wordc; i++) rom_path_expanded += p.we_wordv[i];
95 wordfree(&p);
96 return rom_path_expanded;
97}
98
99path_t getPlugInPath() { return getROMPath() / "plugins"; }
100#else

Callers 1

getPlugInPathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected