| 46 | // MARK: - Public API |
| 47 | |
| 48 | std::filesystem::path get_program_path() { |
| 49 | #if defined(__APPLE__) |
| 50 | return get_bundle_resource_directory(); |
| 51 | #elif defined(__linux__) && defined(RECOMP_FLATPAK) |
| 52 | return "/app/bin"; |
| 53 | #else |
| 54 | return ""; |
| 55 | #endif |
| 56 | } |
| 57 | |
| 58 | std::filesystem::path get_asset_path(const char* asset) { |
| 59 | return get_program_path() / "assets" / asset; |
no outgoing calls
no test coverage detected