MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / get_program_path

Function get_program_path

src/main/support.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 2

get_asset_pathFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected