#pragma once #include #include #include #include namespace Echoion::Standalone { [[nodiscard]] std::expected runningExecutablePath(); [[nodiscard]] std::filesystem::path deriveInstallRoot( const std::filesystem::path& executablePath, const std::optional& homeOverride = std::nullopt); [[nodiscard]] std::filesystem::path resolveCorePath( const std::filesystem::path& installRoot, const std::filesystem::path& executableDirectory, const std::optional& coreOverride = std::nullopt); [[nodiscard]] std::filesystem::path resolveStateDirectory( const std::optional& commandLineOverride, const std::optional& environmentOverride, const std::optional& xdgStateHome, const std::optional& userHome, const std::filesystem::path& fallback); [[nodiscard]] std::optional runtimeWorkingDirectory( const std::filesystem::path& installRoot, const std::filesystem::path& executableDirectory); [[nodiscard]] std::optional bundledCertificateBundle(const std::filesystem::path& installRoot); [[nodiscard]] std::expected resolveAvatarCacheDirectory( const std::filesystem::path& configuredDirectory, const std::filesystem::path& requestedDirectory = {}); } // namespace Echoion::Standalone