| 87 | |
| 88 | #ifdef CUSTOM_ROM_DIR |
| 89 | path_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 | |
| 99 | path_t getPlugInPath() { return getROMPath() / "plugins"; } |
| 100 | #else |